![]() ![]() Check out the notice if have questions why so. These scripts backup and restore scripts will not backup, restore or in any other way touch your home directory. They are working in a way similar to tar commands mentioned above. The latest version of package "termux-tools" contains basic scripts for backup and restore of Termux installation. Now close Termux with the "exit" button from notification and open it again. Tar -zxf /sdcard/ -C /data/data/com.termux/files -recursive-unlink -preserve-permissions By combining these extra options you will get installation state exactly as was in archive. Pass -preserve-permissions to set file permissions as in archive, ignoring the umask value. Pass -recursive-unlink to remove any junk and orphaned files. Extract home and usr with overwriting everything. Please note that all files would be overwritten during the process.Ģ. ![]() ![]() Here will be assumed that you have backed up both home and usr directory into same archive. Once you clear Termux data from settings, these directories are erased too. ![]() $/storage/external-1 - alias for Termux private directory on your micro-sd. storage/XXXX-XXXX/Android/data/com.termux - private Termux directory on external storage, XXXX-XXXX is the UUID of your micro-sd card. sdcard/Android/data/com.termux - private Termux directory on shared storage data/data/com.termux - private Termux directory on internal storage Warning: never store your backups in Termux private directories. If you got some warnings about socket files, ignore them. There shouldn't be any permission denials unless the user abused root permissions. usrīackup should be finished without any error. Tar -zcf /sdcard/ -C /data/data/com.termux/files. Ensure that storage permission is granted: The resulting archive will be stored on your shared storage ( /sdcard) and compressed with gzip.ġ. In this example, a backup of both home and sysroot will be shown. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |