I setup the BackupPC system for offsite storage. For this setup, I swap the Coraid drives with another duplicate set. To insure that the backup configurations are on each set, I rsync them to a temporary path (/config) located on the server HD. The rsync syntax is as follows:
rsync -av -v –include-from=/home/config/backup.inc /home/backuppc/ /home/config
Note: There are TWO (2) – prior to the include-from command!
With the conents of backup.inc set to the following:
# rsync the following paths
+ /
+ /pc
+ /conf
+ /pc/comp37
+ /pc/comp50
+ /pc/comp52
+ /pc/comp55
+ /pc/comp56
+ /pc/comp58
+ /pc/comp60
# rsync the following files
+ backuppc
+ config.pl
# Don’t rsync anything else
- *
September 29, 2006 at 6:15 pm
I setup a couple of scripts to simplify swapping drives; swapout and swapin. They are located in /root/bin therefore they can be executed when logged in as root. swapout shuts down the server after rsync, while swapin restarts the server after rsync.