conf_only=false
dry_run=false # mostly for testing
resume_arg=
+do_i=true
-temp=$(getopt -l help hcnprt: "$@") || usage 1
+temp=$(getopt -l help hcinprt: "$@") || usage 1
eval set -- "$temp"
while true; do
case $1 in
-c) conf_only=true; shift ;;
+ -i) do_i=false; shift ;;
-n) dry_run=true; dry_run_arg=-n; shift ;;
-p) progress_arg="--progress"; shift ;;
# btrbk arg: Resume only. Skips snapshot creation.
# for i, we just do a 1 way sync from master to backup,
# and manually manage any changes to that.
-do_i=false
+i_possible=false
for tg in ${targets[@]}; do
# for an initial run, btrbk requires the dir to exist
ssh root@$tg mkdir -p /mnt/root/btrbk
if [[ $tg == frodo && $HOSTNAME == treetowl ]]; then
- do_i=true
+ i_possible=true
fi
done
+if ! $i_possible; then
+ do_i=false
+fi
vol=/mnt/root