X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=f0f16bda44f3013bc48ec4ed10c1c1955cbd8d9c;hb=74f1a74ea85f54a8a0ec8ea339e553cc4e3a4b65;hp=5e1a8883c0beece80987269249b91dbb842262e2;hpb=0b6d44c7f3d567e0a26138509c8a24cb57c69b50;p=distro-setup diff --git a/btrbk-run b/btrbk-run index 5e1a888..f0f16bd 100644 --- a/btrbk-run +++ b/btrbk-run @@ -214,8 +214,9 @@ ssh_identity /root/.ssh/home # transaction info. transaction_syslog local7 -# 20%ish speedup[] -stream_buffer 512m +# note, i had this because man said 20% speedup, but ran into +# this issue, https://github.com/digint/btrbk/issues/275 +#stream_buffer 512m # so we only run one at a time lockfile /var/lock/btrbk.lock @@ -244,9 +245,15 @@ EOF -for tg in ${targets[@]:-$HOSTNAME}; do - # for an initial run, btrbk requires the dir to exist. - ssh root@$tg mkdir -p /mnt/root/btrbk +# for an initial run, btrbk requires the dir to exist. +mkdir -p /mnt/root/btrbk +local_zone=$(date +%z) +for h in ${targets[@]} $source; do + zone=$(ssh root@$h "mkdir -p /mnt/root/btrbk; date +%z") + if [[ $zone != $local_zone ]]; then + echo "error: error. dont confuse yourself with multiple time zones. $h has different timezone than localhost" >&2 + exit 1 + fi done