From b48c6a655554a90b9a628882efba7eeecbe49879 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 2 Apr 2019 21:02:37 -0400 Subject: [PATCH] better host change funcs --- brc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/brc b/brc index 6389c04..039fb7e 100644 --- a/brc +++ b/brc @@ -1766,12 +1766,19 @@ tm() { (sleep $(calc "$@ * 60") && mpv --no-config --volume 50 /a/bin/data/alarm.mp3) > /dev/null 2>&1 & } -tpx2() { +bpush() { case $HOSTNAME in tp) target=x2 ;; x2) target=tp ;; esac - btrbk-run -t $target -pv && switch-mail-host $HOSTNAME $target + btrbk-run -t $target && switch-mail-host $HOSTNAME $target +} +bpull() { + case $HOSTNAME in + tp) source=x2 ;; + x2) source=tp ;; + esac + btrbk-run -s $source && switch-mail-host $source $HOSTNAME } trg() { transmission-remote-gtk&r; } -- 2.30.2