-# so we only run one at a time
-lockfile /var/lock/btrbk.lock
-
-# default format of short does not accomidate hourly preservation setting
-timestamp_format long-iso
-
-# only make a snapshot if things have changed
-snapshot_create onchange
-# I could make this different from target_preserve,
-# if one disk had less space.
-# for now, keeping them equal.
-snapshot_preserve 36h 14d 8w 24m
-snapshot_preserve_min 4h
-snapshot_dir btrbk
-
-# so, total backups = ~89
-target_preserve 36h 14d 8w 24m
-target_preserve_min 4h
+restore_new_btrbk=false
+if $new_shell systemctl is-active btrbk.timer; then
+ $new_shell sudo systemctl stop btrbk.timer
+ restore_new_btrbk=true
+fi
+restore_old_btrbk=false
+if $old_shell systemctl is-active btrbk.timer; then
+ $old_shell sudo systemctl stop btrbk.timer
+ restore_old_btrbk=true
+fi