This is a bash script to backup and restore your termux home and sysroot directories.
- Install Dependencies In Termux
pkg update -y && pkg install git -y
- Git Clone Repo
git clone https://github.com/rc-chuah/TermuxBackup
- Change Directory
cd TermuxBackup
- Give execution permission
chmod +x TermuxBackup.sh
- Run script
./TermuxBackup.sh
Thanks To Zongou