From 8776c88a2ac745546ff519d0a2c907a0144ed5a1 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 7 Nov 2016 07:51:29 -0800 Subject: [PATCH] working version --- myunison | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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/ -- 2.30.2