Categories
Linux

FTP Backup for MySQL and Files

With this short bash script you can backup files and MySQL everyday into a remote FTP and deletes old backups from the FTP.

Perfect if you have an OVH server and you get free FTP space for your backups.

Add at your cron this line:
* 1 * * * /var/www/somesite/sys/backup.sh

Create file backup.sh