summaryrefslogtreecommitdiffstats
path: root/helperscripts/termux/termux-backup-restore.sh
blob: cde2fef086f95eb8eb70775ed5d46d55dbe31532 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
tarfile="$1"
if ! [ -r "$tarfile" ]; then
	echo "Usage: $0 BACKUP_TARFILE"
	exit 1
fi
echo "Restoring from $tarfile ..."
exec tar xf "$tarfile" -C /data/data/com.termux/files --recursive-unlink --preserve-permissions
bues.ch cgit interface