From: hackbard Date: Sun, 11 Oct 2015 15:00:16 +0000 (+0000) Subject: added rejection method X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=49bb0cd550add3fc0a2339c555daf7f94c8ff83b;p=outofuni%2Fbackup.git added rejection method --- diff --git a/bin/backup b/bin/backup index 191d5be..4489388 100755 --- a/bin/backup +++ b/bin/backup @@ -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 diff --git a/config/hannah.conf b/config/hannah.conf index 7ea7ba0..9c6876e 100644 --- a/config/hannah.conf +++ b/config/hannah.conf @@ -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 diff --git a/config/tx2.conf b/config/tx2.conf index f04791d..db4118f 100644 --- a/config/tx2.conf +++ b/config/tx2.conf @@ -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