termux-backup-restore.sh 227 B

123456789
  1. #!/bin/sh
  2. tarfile="$1"
  3. if ! [ -r "$tarfile" ]; then
  4. echo "Usage: $0 BACKUP_TARFILE"
  5. exit 1
  6. fi
  7. echo "Restoring from $tarfile ..."
  8. exec tar xf "$tarfile" -C /data/data/com.termux/files --recursive-unlink --preserve-permissions