cd /home/ubuntu
git clone https://github.com/username/auto-backup-database.git
chmod +x /home/ubuntu/auto-backup-database/sqlbackup.sh
crontab -e
1 1 * * * /home/ubuntu/auto-backup-database/sqlbackup.sh >/dev null 2>&1
sudo service cron reload
- change database credential
./home/ubuntu/auto-backup-database/sqlbackup.sh
- don't forget to setup github action