Now you will configure a big backup of the whole machine with exceptDirs and the small one of some special directories with option follow links. Naturally, you can also configure it the other way around, only use followLinks for both or use includeDirs.
Let's assume, you want to do:
To prepare the steps described above, you need to do the following:
For the daily backup, make a special directory (we use followLinks)
like described in example 2 (you also stored
storeBackup in /opt/storeBackup in this example):
# mkdir /opt/small-backup # cd /opt/small-backup # ln -s . small-backup # ln -s /home/jim home_jim # ln -s /home/tom/texts home_tom_textsand write a backup script byBackup.sh:
#! /bin/sh
/opt/storeBackup/bin/storeBackup.pl -s /opt/small-backup
-b /net/server/backup \
-S daily -l /tmp/storeBackup.log --followLinks 1 0:weekly
Then write a script for the weekly backup:
#! /bin/sh
/opt/storeBackup/bin/storeBackup.pl -s / -b /net/server/backup -S weekly \
-l /tmp/storeBackup.log --exceptDirs /net -e /tmp -e /var/tmp \
-e /proc -e /sys -e /dev 0:daily
The ``0'' before the paths (like 0:daily) means to take the
last backup of the other backup series to check for identical files.
And -- naturally -- the directories weekly and daily must exist inside of /net/server/backup on the NFS server.
As you can see, using command line options begin to be a little bit confusing. When configuring such examples, you should try to generate a configuration file with storeBackup.pl -g configFile and to use that instead.