aboutsummaryrefslogtreecommitdiffstats
path: root/stromboli_backup
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2018-04-14 15:22:47 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2018-04-14 15:22:47 +0200
commitcdfd119b1428277b20f033d1977ba64309cf6cb5 (patch)
tree2ef27a4e0cdc196bf7547a24c110d118c5ada2e1 /stromboli_backup
parent1d5d8961615ff385bbf9147fd5f6ecd71b7b119d (diff)
Adapted backup system to use rsync over SSH instead of the NFS mount
Diffstat (limited to 'stromboli_backup')
-rwxr-xr-xstromboli_backup15
1 files changed, 2 insertions, 13 deletions
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