From cdfd119b1428277b20f033d1977ba64309cf6cb5 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sat, 14 Apr 2018 15:22:47 +0200 Subject: Adapted backup system to use rsync over SSH instead of the NFS mount --- stromboli_backup | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'stromboli_backup') diff --git a/stromboli_backup b/stromboli_backup index 190e7d3..ad5c74a 100755 --- a/stromboli_backup +++ b/stromboli_backup @@ -1,16 +1,5 @@ #!/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 +# Backup script for stromboli. This synchronises stromboli's local storage with the NFS data from vesuvio. +/home/eddy/bin/backup vesuvio: /home/eddy/backup sync - -umount /home/eddy/data -- cgit v1.2.3