Once it's confirmed working then add it to the crontab.
chmod 777 backupsql.sh ./backupsql.sh
Dropbox uploader script originally from - https://github.com/andreafabrizi/Dropbox-Uploader/
You will need to alter the following in backupsql.sh
It's set to delete files older than 5 days.
MYSQLUSERNAME="USERNAME" MYSQLPASSWORD="PASSWORD" BACKUPPATH="/LOCALPATH/$TIMESTAMP" DATABASE="DATABASE NAME" DROPBOXPATH="/PATH ON DROPBOX/"
You can alter this by changing the following line:
For adding to the crontab you can easily use the following site to generate how often you wish for it to run
dropbox_uploader.sh delete $DROPBOXPATH/mysql_db_backup-`date +%d-%m-%y-%H --date 'now -5 days'`.bz2
All should be easy to work out.
Any issues please email me firstname.lastname@example.org