UPD btrfs-snapshot script

This commit is contained in:
2025-06-13 12:51:35 +02:00
parent 3430a5c0da
commit 5773295f2d
3 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,8 @@
[Unit]
Description=rolling snapshot for /home/user
[Service]
Type=oneshot
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
ExecStart=/usr/local/bin/btrfs-snapshot /home/user /home/snap/user daily 4

View File

@ -0,0 +1,9 @@
[Unit]
Description=daily snapshot
[Timer]
# see systemd.time(7) manual page for other scheduling options
OnCalendar=01:00
# run immediately if we missed a backup for some reason
Persistent=true
[Install]
WantedBy=timers.target