blob: 190e7d330815c77790f4c65bd614d37b6c7ca5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/zsh
# Backup script for stromboli. This synchronises stromboli's local storage with the NFS data from vesuvio. Since this script mounts and umounts the NFS, it should be configured to be mountable without root on fstab.
mount /home/eddy/data
if [ $? -ne 0 ]; then
# mount failed, better exit so that we don't wipe the existing backup
# TODO send some kind of failure notification
exit 1
fi
/home/eddy/bin/backup /home/eddy/data /home/eddy/backup
sync
umount /home/eddy/data
|