Created
October 25, 2020 05:52
-
-
Save mahfuznow/a8c9390420f3f6e1c6b8a71b1a2e2e9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
termux-setup-storage &&\ | |
echo "======== Restoring home =========" &&\ | |
cd ~/.. &&\ | |
rm -rf home &&\ | |
tar -zxvf /sdcard/termux-backup.tar.gz home &&\ | |
echo "======== Restoring usr =========" &&\ | |
cp home/mahfuznow-termux/backup-restore/busybox ./tar && \ | |
chmod +x tar && \ | |
rm -rf usr &&\ | |
unset LD_PRELOAD &&\ | |
./tar -zxvf /sdcard/termux-backup.tar.gz usr &&\ | |
echo "====Restoring compleeted successfully, Please restart Termux ====" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment