Page 1 of 1

Backup options

Posted: Mon May 21, 2007 1:11 pm
by impulse()
I have setup a cronjob which tars up a directory daily but I was hoping to find a script that will e-mail that file somewhere.
Does anybody else use this method here? Or if not, what method do you use for automatic backups?

Posted: Mon May 21, 2007 3:13 pm
by Christopher
For emailing, you should probably look around for a Perl script. As I recall there are plenty around that do that -- or you could write one pretty easily.

For remote backups I tend to use rsync to either push archives like you have created or to pull them from a central server.

Posted: Mon May 21, 2007 4:04 pm
by Chris Corbyn
I agree. rsync is a better tool for this job. You can just cron it to run once a day.

Posted: Tue May 22, 2007 12:33 pm
by impulse()
I've setup rsync and some keys so it's cronned daily. I'm impressed with it so far.

If I wanted to backup MySQL data in the same way could I rsync the MySQL directory or would it be better to cron a mysqldump and then rsync the dump data.