# fine if they go back years.
log_path=/var/log/btrbk/$(date +%F_%T%:::z).log
echo copying output to $log_path
-exec &> >(tee -a $log_path)
+exec &> >(ts "%F %T" | tee -a $log_path)
if $verbose; then
if [[ $ret == 0 ]]; then
for tg in ${targets[@]}; do
+ h=$(ssh root@$tg hostname)
+ rsync -a /var/log/btrbk $tg:/var/log/btrbk/$tg
ssh root@$tg /usr/local/bin/mail-backup-clean
done
+ if [[ $source ]]; then
+ rsync -a $source:/var/log/btrbk /var/log/btrbk/$source
+ fi
fi
mexit $ret