Commit graph

3 commits

Author SHA1 Message Date
Laurence Horrocks-Barlow
3ce5bf1a47 feat(borg): repository and restore tools (Layer 1 complete)
- borg-apiscp-repo: status/init/check-access/gen-passphrase/key-status/
  backup-key/key-bundle/config-get/set/sites/run/running/prune/maintenance
  (borg compact)/verify (borg check [--data])/set-schedule/notify-test/
  list-databases. Config whitelist + single-quote escaping + newline guard,
  mirroring apiscp-kopia's security boundary.
- borg-apiscp-restore: list/list-json/site (+ --subpath)/account/system/
  restore-db/import-db and site-owner variants (owner-files/-account/
  -restore-db/-import-db) that land under /.borg-restore chowned to the owner.
  All restores are `borg extract` with computed --strip-components to rebase
  archived paths under a staging target; ACLs/xattrs come back natively.
2026-07-24 22:49:24 +01:00
Laurence Horrocks-Barlow
9b741e9dec chore: enforce LF line endings via .gitattributes 2026-07-24 22:33:56 +01:00
Laurence Horrocks-Barlow
2f0d93a0ae Initial scaffold: Borg engine + docs (Layer 1 milestone)
apiscp-borg is a sibling of apiscp-kopia built on BorgBackup. This first
milestone lands the project scaffold and the Layer 1 engine:
- borg-apiscp-backup: per-site named archives (siteN-shadow/info/db), fresh
  per-site DB dumps via ApisCP site-context export, system + custom archives,
  borg prune retention per prefix, Prometheus metrics, email notifications.
- apiscp-borg-common.sh: logging, mail, site/owner helpers.
- config example, systemd service+timer, install.sh, README, DESIGN.

Borg preserves POSIX ACLs and xattrs natively, so (unlike the kopia engine) no
metadata sidecar is required; DESIGN.md records how Borg reshapes the design.
Repository/restore tools, Layer 2 panel integration, hooks, uninstall, and the
full reference are the next milestones.
2026-07-24 22:33:37 +01:00