misc fixes and improvements
[distro-setup] / machine_specific / kd / filesystem / etc / btrbk / root2.conf
diff --git a/machine_specific/kd/filesystem/etc/btrbk/root2.conf b/machine_specific/kd/filesystem/etc/btrbk/root2.conf
new file mode 100644 (file)
index 0000000..d811240
--- /dev/null
@@ -0,0 +1,45 @@
+snapshot_create onchange
+
+snapshot_preserve_min 2h
+snapshot_dir btrbk
+target_preserve_min 2h
+
+
+ssh_identity /root/.ssh/home
+# Just a guess that local7 is a good facility to pick.
+# It's a bit odd that the transaction log has to be logged to
+# a file or syslog, while other output is sent to std out.
+# The man does not mention a way for them to be together, but
+# I dunno if setting a log level like warn might also output
+# transaction info.
+transaction_syslog local7
+
+# trying this out
+stream_compress zstd
+
+archive_preserve_min latest
+
+# so we only run one at a time
+lockfile   /var/lock/btrbkroot2.lock
+
+# default format of short does not accomidate hourly preservation setting
+timestamp_format long-iso
+
+# dont make new snapshot, we only receive new snapshots
+snapshot_create no
+
+# if something fails and it's not obvious, try doing
+# btrbk -l debug -v dryrun
+
+rate_limit no
+volume ssh://syw/mnt/root
+snapshot_preserve 18h 14d 4w 24m
+target_preserve 18h 14d 4w 24m
+subvolume root_ubuntubionic
+target send-receive /mnt/r7/amy/root/btrbk
+
+volume ssh://syw/mnt/boot
+snapshot_preserve 18h 14d 4w 6m
+target_preserve 18h 14d 4w 6m
+subvolume boot_ubuntubionic
+target send-receive /mnt/r7/amy/boot/btrbk