From: Ian Kelling Date: Fri, 21 Aug 2020 13:49:18 +0000 (-0400) Subject: ipv6 btrbk X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=7def49bda215027a6ead2a661b68a5296f6b4eb6;p=distro-setup ipv6 btrbk --- diff --git a/btrbk-run b/btrbk-run index a83e21d..00052da 100644 --- a/btrbk-run +++ b/btrbk-run @@ -99,7 +99,14 @@ while true; do --pull-reexec) pull_reexec=true; shift ;; -q) verbose=false; verbose_arg=; progress_arg=; shift ;; # source host to receive a backup from - -s) source=$2; shift 2 ;; + -s) + source=$2 + bbksource=$source + if [[ $source == *:* ]]; then + bbksource="[$source]" + fi + shift 2 + ;; # target hosts to send to. empty is valid for just doing local # snapshot. we have default hosts we will populate. -t) IFS=, targets=($2); unset IFS; shift 2 ;; @@ -384,7 +391,7 @@ for m in ${mountpoints[@]}; do sub=${m#/} if [[ $source ]]; then cat >>/etc/btrbk.conf <>/etc/btrbk.conf <