Web Hosting Talk







View Full Version : Dedicated Server Backup Advice, PLEASE!


sitekeeper
08-17-2001, 06:17 PM
I use a bash script to backup to a second drive using rsync. I know this is not the best but it has to be better then nothing. I currently back up /usr, /home, and /var.
Is there any other directories or files I should add to my script. I have a very large backup drive and I use a different backup directory everyday. Below is the script for Friday.

#!/bin/bash/
rsync -a -z -x --delete /usr /home2/sync-fri 2>&1
rsync -a -z -x --delete /home /home2/sync-fri 2>&1
rsync -a -z -x --delete /var /home2/sync-fri 2>&1

I thought about copying the whole drive but I am not sure that would do any good. I have restored some files and a MYSQL database and it worked fine. So I know the idea is sound.

Any suggestions would be appreciated.
BOB :D

valkaryn
08-17-2001, 06:28 PM
It would probably be a REALLY good idea to get /etc !

davidb
08-17-2001, 09:32 PM
Im not good at backup, but if you backup the whole drive, and it crashes, wouldnt doing the whole drive save you some time?

valkaryn
08-17-2001, 09:41 PM
absolutely. I just mentioned /etc because I didn't see it listed above and since it has some of the most important configuration files, it's a good idea to make sure you have it on backup.