To run it daily, use cron (install via pkg install cronie ).
chmod +x backup.sh ./backup.sh
Here are some tips and tricks to help you get the most out of Termux: termux complete tutorial guide pdf free