McTRASH692

Termux backup and restore

Sep 20th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. # Backup
  2. tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
  3.  
  4. # Restore
  5. tar -zxf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files --recursive-unlink --preserve-permissions
Advertisement
Add Comment
Please, Sign In to add comment