termux-backup.sh 185 B

123456
  1. #!/bin/sh
  2. date="$(date '+%Y%m%d-%H%M%S')"
  3. tarfile="/sdcard/termux-backup-$date.tar.gz"
  4. echo "Backup to $tarfile ..."
  5. exec tar czf "$tarfile" -C /data/data/com.termux/files ./home ./usr