Will do a backup of all the databases and for the following folders
- /etc/
- /var/www/
- /var/spool/cron/
- Install the AWS cli https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
- Configure AWS cli
aws configure
- Add the code to
/etc/full-backup.sh
- Create the database config file
/etc/full-backup.mysql.cnf
with correct credentials - Add the following line to crontab by running
sudo crontab -e
30 1 * * * /bin/bash /etc/full-backup.sh >> /var/log/backuper.log