3 function check_if_failed()
11 function exit_if_failed()
19 # just undo it first, to try to be sure we know we are mounted properly later.
20 umount /z/backup &>/dev/null
22 # now saddle up the backup.
24 exit_if_failed "mounting backup folder"
26 # we should always be synching to an existing set in there. make sure they exist.
27 # for the first ever backup, this is not a good check...
28 #test -d /z/backup/etc -a -d /z/backup/home
29 #exit_if_failed "testing presence of prior backup"
33 synch_files /etc /z/backup/etc/
34 check_if_failed "synching etc to backup"
38 synch_files /home/albums /z/backup/home/albums
39 check_if_failed "synching home/albums to backup"
41 synch_files /home/deepcore /z/backup/home/deepcore
42 check_if_failed "synching home/deepcore to backup"
44 synch_files /home/drupal /z/backup/home/drupal
45 check_if_failed "synching home/drupal to backup"
47 synch_files /home/fred /z/backup/home/fred
48 check_if_failed "synching home/fred to backup"
50 synch_files /home/git /z/backup/home/git
51 check_if_failed "synching home/git to backup"
53 synch_files /home/sharedspam /z/backup/home/sharedspam
54 check_if_failed "synching home/sharedspam to backup"
56 synch_files /home/sim /z/backup/home/sim
57 check_if_failed "synching home/sim to backup"
59 synch_files /home/svn /z/backup/home/svn
60 check_if_failed "synching home/svn to backup"
62 synch_files /home/trac /z/backup/home/trac
63 check_if_failed "synching home/trac to backup"
67 synch_files /var/lib/mailman /z/backup/var/lib/mailman
68 check_if_failed "synching var/lib/mailman to backup"
73 exit_if_failed "unmounting backup folder"