From: Ian Kelling Date: Sat, 1 Feb 2025 07:34:42 +0000 (-0500) Subject: add new filesystem X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=196534fd29e9287defb7b288d6b97a955f3a93bc;p=distro-setup add new filesystem --- diff --git a/machine_specific/frodo/filesystem/etc/btrbk/r.conf b/machine_specific/frodo/filesystem/etc/btrbk/r.conf new file mode 100644 index 0000000..4454391 --- /dev/null +++ b/machine_specific/frodo/filesystem/etc/btrbk/r.conf @@ -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 index 0000000..8938e9c --- /dev/null +++ b/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.service @@ -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 index 0000000..0f0fbd4 --- /dev/null +++ b/machine_specific/frodo/filesystem/etc/systemd/system/btrbkr.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Btrbk r to rust timer + +[Timer] +OnCalendar=*-*-* 05:00:00 America/New_York + +[Install] +WantedBy=timers.target