Episode 7: nightly restic backup to S3 with consistent dumps, heartbeat, and a restore script for a fresh box
Claude-Session: https://claude.ai/code/session_01Y1BTehJjJ4Chr6YscVRXmn
This commit is contained in:
parent
80d5b00b67
commit
cf374770c4
7 changed files with 444 additions and 0 deletions
12
backup/selfhostedops-backup.service
Normal file
12
backup/selfhostedops-backup.service
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=selfhostedops nightly backup (restic to S3)
|
||||
After=docker.service network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/selfhostedops-stack/backup
|
||||
ExecStart=/opt/selfhostedops-stack/backup/backup.sh
|
||||
Nice=10
|
||||
IOSchedulingClass=best-effort
|
||||
IOSchedulingPriority=7
|
||||
Loading…
Add table
Add a link
Reference in a new issue