]> hackdaworld.org Git - outofuni/backup.git/commitdiff
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 191d5be90f8644952ddf3120c237b84f89ab6c26..4489388ed213b91a74d9e4f515bca478bc3e84be 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 7ea7ba0a895d74fa8c57a7e485856883e88a4b09..9c6876e7e46b98f0fab8799b52c6367a09dfdb70 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 f04791d20b797942b5059b6a9fb3127339e9e9c4..db4118f674db147fb812e10b54e390c34a8b40fc 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