From 5c0715431c0ec225dd06af5e7d42a28f196af780 Mon Sep 17 00:00:00 2001 From: skylar Date: Sun, 1 Nov 2026 16:41:26 -0800 Subject: bin: add vpsbackup, a daily pull backup of the VPS vpsbackup pulls the VPS over a read-only rsync key into a local mirror (--fake-super keeps owners, modes and symlinks in xattrs) and snapshots it into a local restic repository, hourly until a day has passed. Failures are mailed through the VPS's own postfix, and a watch timer it installs there mails when no backup has arrived for three days. A dropped connection is retried next hour rather than reported. Co-Authored-By: Claude Opus 5.5 --- bin/systemd/vpsbackup.service | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bin/systemd/vpsbackup.service (limited to 'bin/systemd/vpsbackup.service') diff --git a/bin/systemd/vpsbackup.service b/bin/systemd/vpsbackup.service new file mode 100644 index 0000000..f2bb392 --- /dev/null +++ b/bin/systemd/vpsbackup.service @@ -0,0 +1,8 @@ +[Unit] +Description=vpsbackup: pull the VPS and snapshot it + +[Service] +Type=oneshot +ExecStart=%h/.local/bin/vpsbackup run +Nice=10 +IOSchedulingClass=idle -- cgit v1.2.3