3 function check_if_failed()
11 # just undo it first, to try to be sure we know we are mounted properly later.
12 umount /z/backup &>/dev/null
14 # now saddle up the backup.
16 check_if_failed "mounting backup folder"
18 # we should always be synching to an existing set in there. make sure they exist.
19 # for the first ever backup, this is not a good check...
20 test -d /z/backup/etc -a -d /z/backup/home
21 check_if_failed "testing presence of prior backup"
23 synch_files /etc /z/backup/etc/
24 check_if_failed "synching etc to backup"
26 synch_files /home /z/backup/home/
27 check_if_failed "synching home to backup"
30 check_if_failed "unmounting backup folder"