dry_run=false # mostly for testing
resume_arg=
do_i=true
-do_o=true
+if [[ $HOSTNAME == $MAIL_HOST ]]; then
+ do_o=true
+else
+ do_o=false
+fi
+
+default_args_file=/etc/btrbk-run.conf
+if [[ -r $default_args_file ]]; then
+ set -- $(< $default_args_file) "$@"
+fi
temp=$(getopt -l help hcinoprt: "$@") || usage 1
eval set -- "$temp"
targets=(frodo)
;;
esac
- echo "targets: ${targets[*]}"
fi
+echo "targets: ${targets[*]}"
+
+
# for i, we just do a 1 way sync from master to backup,
# and manually manage any changes to that.
i_possible=false