Skip to content

Instantly share code, notes, and snippets.

@mahfuznow
Created October 25, 2020 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahfuznow/a8c9390420f3f6e1c6b8a71b1a2e2e9e to your computer and use it in GitHub Desktop.
Save mahfuznow/a8c9390420f3f6e1c6b8a71b1a2e2e9e to your computer and use it in GitHub Desktop.
#!/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