From: Ian Kelling Date: Mon, 7 Nov 2016 15:51:29 +0000 (-0800) Subject: working version X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=8776c88a2ac745546ff519d0a2c907a0144ed5a1 working version --- diff --git a/myunison b/myunison index 8e3c8b3..d8f23bc 100755 --- a/myunison +++ b/myunison @@ -2,7 +2,6 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR -set -x gen_args=() do_snapshot=true @@ -26,6 +25,10 @@ if [[ ! $host ]]; then host=$1 fi +if [[ $host == demohost ]]; then + do_snapshot=false +fi + # arch and debian don't play nice with unison. # "connection lost" on unison-gtk, with bignum errs in term, # and simply freezing on cli, all means compiled under @@ -75,7 +78,7 @@ else type -t $f &>/dev/null || f=unison-gtk2 # for arch fi -if s $f "$host"; then +if s $f "$host"; then if [[ $host == frodo ]]; then # only send data to the machine i do full backups to p=/q/p/c/machine_specific/$HOSTNAME/.unison/