better host change funcs
authorIan Kelling <iank@fsf.org>
Wed, 3 Apr 2019 01:02:37 +0000 (21:02 -0400)
committerIan Kelling <iank@fsf.org>
Wed, 3 Apr 2019 01:02:37 +0000 (21:02 -0400)
brc

diff --git a/brc b/brc
index 6389c0466b5ce31d4f602f672c7da95cbbe2755b..039fb7ee949281c863321aaaedf5127796d0fbfc 100644 (file)
--- 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 &
 }
 
   (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
   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; }
 }
 
 trg() { transmission-remote-gtk&r; }