To create backup of termux files & folder.
Run backup.sh using ( bash ) command.
bash backup.sh
To restore termux files & folder.
Run restore.sh using ( bash ) command.
bash restore.sh
this is a link to get package to create backup and restore backup.
https://github.com/mohitsaraswat411/termux-backup-restore.git