+echo "$0: options: conf_only=$conf_only, dry_run=$dry_run, resume_arg=$resume_arg"
+
+# set default targets
+if ! (( ${#targets[@]} )); then
+ case $HOSTNAME in
+ x2)
+ if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+ targets=($HOME_DOMAIN)
+ fi
+ ;;
+ treetowl)
+ targets=(frodo)
+ if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+ if timeout -s 9 10 ssh x2 :; then
+ targets+=(x2)
+ fi
+ fi
+ ;;
+ *)
+ echo "$0: error: no default targets for this host, use -t"
+ exit 1
+ ;;
+ esac
+fi
+
+echo "targets: ${targets[*]}"
+
+
+
+# set default mountpoints
+if ! (( ${#mountpoints[@]} )); then
+ prospective_mps=(/a /q)
+ if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+ prospective_mps+=(/o)
+ fi
+ for tg in ${targets[@]}; do
+ if [[ $tg == frodo && $HOSTNAME == treetowl ]]; then
+ prospective_mps+=(/i)
+ fi
+ done
+ for mp in ${prospective_mps[@]}; do # default mountpoints to sync
+ if awk '{print $2}' /etc/fstab | grep -xF $mp &>/dev/null; then
+ mountpoints+=($mp)
+ fi
+ done