added rejection method
authorhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 15:00:16 +0000 (15:00 +0000)
committerhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 15:00:16 +0000 (15:00 +0000)
bin/backup
config/hannah.conf
config/tx2.conf

index 191d5be..4489388 100755 (executable)
@@ -55,6 +55,11 @@ else
        log "host $host (via $remote) is online ..."
 fi
 
+if [ ! -z "`ssh $user@$remote 'cat ~/.backup | grep ^no'`" ]; then
+       log "backup rejected by client ..."
+       exit 0
+fi
+
 comp=6
 if [ ! -z "$compression" ]; then
        comp=$compression
index 7ea7ba0..9c6876e 100644 (file)
@@ -6,6 +6,7 @@ extradirs
 replicas 3
 oldest 60
 data /mnt/wd/ext/backups
-bandwidth 10m hannahvpn:5m
+bandwidth 5m hannahvpn:5m
 compression 0 hannahvpn:4
+cipher arcfour
 logdir /dev/shm/backups/log
index f04791d..db4118f 100644 (file)
@@ -6,7 +6,7 @@ extradirs /home/scratch
 replicas 3
 oldest 60
 data /mnt/wd/ext/backups
-bandwidth 10m tx2vpn:5m
+bandwidth 5m tx2vpn:1m
 compression 0 tx2vpn:4
 cipher arcfour
 logdir /dev/shm/backups/log