feat(backup): add forgejo dump systemd timer + wire into runbook
Daily 'forgejo dump' (tar.zst) to /opt/backups/forgejo with 14-day retention, via a oneshot service + timer. Maintenance section now documents both backup layers (Codeberg push-mirror for git, dump timer for full state). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d326670b1f
commit
892601f65b
4 changed files with 70 additions and 3 deletions
10
backup/forgejo-backup.service
Normal file
10
backup/forgejo-backup.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Oneshot unit invoked by forgejo-backup.timer. Install both into
|
||||
# /etc/systemd/system/ and `systemctl enable --now forgejo-backup.timer`.
|
||||
[Unit]
|
||||
Description=Forgejo dump backup
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/forgejo-backup.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue