diff options
| author | skylar <me@casper> | 2026-11-01 16:41:26 -0800 |
|---|---|---|
| committer | skylar <me@casper> | 2026-11-01 16:41:26 -0800 |
| commit | 5c0715431c0ec225dd06af5e7d42a28f196af780 (patch) | |
| tree | 8a9e4709959e57b328258614d8b9c9c09c139b1c /bin/systemd/vpsbackup.service | |
| parent | b6c9feb9e223c88dcad3f4bff39ae9a01e7cdad0 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'bin/systemd/vpsbackup.service')
| -rw-r--r-- | bin/systemd/vpsbackup.service | 8 |
1 files changed, 8 insertions, 0 deletions
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 |