Incremental Backup Files & MySQL to remote FTP Server

Here we will give you code snippets or tips related to Bash Scripting and Linux Server Management
Forum rules
Be civilized... # Seja civilizado... # Être civilisé...

Incremental Backup Files & MySQL to remote FTP Server

Postby weblivehelp » Mon Sep 01, 2008 8:34 pm

Hey there,

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.
weblivehelp
Site Admin
 
Posts: 16
Joined: Thu May 01, 2008 3:23 pm

Re: Incremental Backup Files & MySQL to remote FTP Server

Postby michael » Thu Sep 18, 2008 8:23 pm

Man, I just what I was looking for!

Nice tutorials!
michael
 


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests

cron