Backup
Backing up
In this example, a backup of both home and sysroot will be shown. The resulting archive will be stored on your shared storage (/sdcard) and compressed with gzip.
1. Ensure that storage permission is granted:
termux-setup-storage
2. Backing up files:
tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
Backup should be finished without any error. There shouldn't be any permission denials unless the user abused root permissions. If you got some warnings about socket files, ignore them.
Warning: never store your backups in Termux private directories. Their paths may look like:
/data/data/com.termux - private Termux directory on internal
In this example, a backup of both home and sysroot will be shown. The resulting archive will be stored on your shared storage (/sdcard) and compressed with gzip.
1. Ensure that storage permission is granted:
termux-setup-storage
2. Backing up files:
tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
Backup should be finished without any error. There shouldn't be any permission denials unless the user abused root permissions. If you got some warnings about socket files, ignore them.
Warning: never store your backups in Termux private directories. Their paths may look like:
/data/data/com.termux - private Termux directory on internal
Comentários
Postar um comentário