Today we are giving out a great tool for web server owners and for anyone who has a remote Backup FTP server.
Our script is mainly based on one that is good enough for most people, so we aren't going to post our script but give you access to a page where you can create your own (you just have to fill in some values, if you don't trust them, you can put whatever values you want and then, on the generated script, put the values you want): http://bash.cyberciti.biz/backup/wizard-ftp-script.php
After generating your script, copy the source generated and paste it in a new file on your server, let's say: "/root/crons/ftp_backup.sh"
Don't forget to make it executable for root and unreadable for everyone else (# chmod 700 /root/crons/ftp_backup.sh)
Once you're done with that, put the following lines on your server's crontab: (# crontab -e)
- Code: Select all
# Run FTP Backup script every day at 4:23, server time
23 4 * * * /root/crons/ftp_backup.sh
And there you go, you'll have a great incremental backup working for folders and mysql databases. A must-have for every server owner.

