Lukasz Boryn c12604ebb4 feat(template): publish the Mithlond self-hosted Gitea template
A spare-machine Gitea forge, hardened, backed up and with CI, as a template.
Personal values are placeholders listed in the README.
2026-10-16 15:04:18 +02:00

25 lines
1.2 KiB
Markdown

---
type: Module
purpose: Say what each script in scripts/ does, where it runs, and which guide drives it.
answers:
- "What does each script in scripts/ do, and where does it run?"
cites:
- scripts/backup.sh
- scripts/gitea-backup
- scripts/chkdsk-vm.sh
---
# scripts/
<!-- okf:derived begin -->
| Script | Runs on | Does | Guide |
|---|---|---|---|
| `scripts/backup.sh` | server, as the admin user | manual tar backup of `gitea-data/` to the backup drive plus restore test; `verify ARCHIVE` re-checks one | [10](../guides/10-backup-manual.md) |
| `scripts/gitea-backup` | server, root, installed to `/usr/local/sbin/` | nightly restic backup and its subcommands (`init`, `run`, `snapshots`, `check`, `restore-test`, `test-mail`, `notify-failure`) | [11](../guides/11-backup-automated.md), [ops](../guides/backup-operations.md) |
| `scripts/chkdsk-vm.sh` | a separate Linux PC, not the server | boots a Windows Setup VM with the backup drive passed through for `chkdsk` | [ntfs-repair](../guides/ntfs-repair.md) |
<!-- okf:derived end -->
`gitea-backup` runs from the systemd units in `systemd/`
(`gitea-backup.service`, `.timer`, `gitea-backup-failed.service`); the guide
for [11](../guides/11-backup-automated.md) lists where each is installed.