From 7def49bda215027a6ead2a661b68a5296f6b4eb6 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 21 Aug 2020 09:49:18 -0400 Subject: [PATCH] ipv6 btrbk --- btrbk-run | 15 +++++++++++++-- distro-begin | 3 ++- mount-latest-remote | 6 +++++- 3 files changed, 20 insertions(+), 4 deletions(-) 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 <