feature/multi-disk-rotation #2

Merged
diewi merged 1 commit from feature/multi-disk-rotation into main 2026-07-19 22:23:28 +02:00
Owner
No description provided.
- Makefile at repo root: `make deb`, `make arch`, `make all`,
  `make install` (manual, PREFIX=/usr/local), `make clean`.
- debian/: native 3.0 source package, debhelper-compat 13. Installs
  to /usr/sbin/, patches VM_HOOK default at install time to match.
  postinst creates /etc/backup/vms, /var/log/backup, /var/lib/borg-prep
  and prints a hint if backup.conf is missing. postrm removes only
  empty state dirs.
- packaging/arch/PKGBUILD + kvm-backup.install: analogous, installs
  to /usr/bin/ (Arch merges /sbin into /bin).
- .gitignore: extended with build artifact patterns (deb, pkg,
  debhelper-generated files).
- .gitattributes: export-ignore for packaging/, debian/, Makefile
  so `git archive` produces a clean runtime tarball.
- README: added Bauen, package install and version bump sections.
- .forgejo/workflows/build.yml with three jobs:
  * build-deb   -> debian:13 container, make deb, uploads .deb + .buildinfo + .changes
  * build-arch  -> archlinux:base-devel container, make arch as builder user, uploads .pkg.tar.zst
  * release     -> on refs/tags/v*, downloads both artifacts and attaches them to the
                   Forgejo release via https://code.forgejo.org/actions/forgejo-release@v2
- Triggers: push main, tag v*, pull_request main, workflow_dispatch.
- README: added CI section explaining runner requirements, release
  publishing behavior and the option to drop the release job on
  instances without the code.forgejo.org action registry.
feat: support multiple rotating backup disks
Some checks failed
Build packages / Build .deb (Debian 13) (pull_request) Has been cancelled
Build packages / Build .pkg.tar.zst (Arch) (pull_request) Has been cancelled
Build packages / Publish release on tag (pull_request) Has been cancelled
a569a835ec
LUKS_UUID may now list several UUIDs (whitespace-separated). run-backup.sh
selects whichever disk is currently attached and opens it as backup_ext, so
disk rotation across two locations needs no other change -- same keyfile, same
btrfs layout, same mount point and repo paths. Each disk keeps its own
independent borg repos (a full standalone backup per location).

- run-backup.sh: parse LUKS_UUID list, pick attached disk, warn if several,
  die if none; log/report the selected UUID
- backup.conf.example: document the list form and shared-key requirement
- examples/udev: second (commented) rule per disk UUID
- README: "Mehrere Backup-Platten (Off-Site-Rotation)" section

All host-specific values (the UUIDs) stay in backup.conf; no new script params.
diewi force-pushed feature/multi-disk-rotation from a569a835ec
Some checks failed
Build packages / Build .deb (Debian 13) (pull_request) Has been cancelled
Build packages / Build .pkg.tar.zst (Arch) (pull_request) Has been cancelled
Build packages / Publish release on tag (pull_request) Has been cancelled
to b323f15def
All checks were successful
Build packages / Build .deb (Debian 13) (pull_request) Successful in 36s
Build packages / Build .pkg.tar.zst (Arch) (pull_request) Successful in 33s
Build packages / Publish release on tag (pull_request) Has been skipped
Build packages / Build .deb (Debian 13) (push) Successful in 1m5s
Build packages / Build .pkg.tar.zst (Arch) (push) Successful in 42s
Build packages / Publish release on tag (push) Has been skipped
2026-07-19 22:18:51 +02:00
Compare
diewi merged commit b323f15def into main 2026-07-19 22:23:28 +02:00
diewi deleted branch feature/multi-disk-rotation 2026-07-19 22:23:28 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
diewi/backup-diewald!2
No description provided.