add new filesystem master
authorIan Kelling <ian@iankelling.org>
Sat, 1 Feb 2025 07:34:42 +0000 (02:34 -0500)
committerIan Kelling <ian@iankelling.org>
Sat, 1 Feb 2025 07:34:42 +0000 (02:34 -0500)
machine_specific/frodo/filesystem/etc/btrbk/r.conf [new file with mode: 0644]
machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.service [new file with mode: 0644]
machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.timer [new file with mode: 0644]

diff --git a/machine_specific/frodo/filesystem/etc/btrbk/r.conf b/machine_specific/frodo/filesystem/etc/btrbk/r.conf
new file mode 100644 (file)
index 0000000..4454391
--- /dev/null
@@ -0,0 +1,19 @@
+transaction_syslog local7
+
+lockfile                   /var/lock/btrbk-rbackup.lock
+
+timestamp_format long-iso
+
+snapshot_create onchange
+
+snapshot_preserve 18h 14d 8w 12m
+snapshot_preserve_min 2h
+snapshot_dir btrbk
+
+target_preserve 18h 14d 8w 12m
+target_preserve_min 2h
+
+rate_limit no
+volume /mnt/root
+subvolume r
+target send-receive /mnt/rbackup/btrbk
diff --git a/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.service b/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.service
new file mode 100644 (file)
index 0000000..8938e9c
--- /dev/null
@@ -0,0 +1,7 @@
+[Unit]
+Description=Btrbk r to rust
+After=multi-user.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/sysd-mail-once btrbkrust btrbk -c /etc/btrbk/r.conf run
diff --git a/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.timer b/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.timer
new file mode 100644 (file)
index 0000000..0f0fbd4
--- /dev/null
@@ -0,0 +1,8 @@
+[Unit]
+Description=Btrbk r to rust timer
+
+[Timer]
+OnCalendar=*-*-* 05:00:00 America/New_York
+
+[Install]
+WantedBy=timers.target