Backup options

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Backup options

Post 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?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I agree. rsync is a better tool for this job. You can just cron it to run once a day.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post 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.
Post Reply