Commit Graph
9 Commits
Author SHA1 Message Date
Julien LutranandClaude Fable 5 43b3ab5841 Harden incus-container-upgrade: containers only, flock, error reporting
- filter type=container (a running VM without apt/agent would hang)
- skip containers without apt-get instead of erroring
- flock against overlapping runs, csv parsing, apt-get instead of apt
- capture stderr into the log, report per-container failures and
  exit non-zero so cron/monitoring can alert

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 22:50:26 +02:00
Julien LutranandClaude Fable 5 856ea28d93 Rework incus-copy and incus-backup for the new two-leg backup scheme
incus-copy.sh: add -r <src-remote> (pull all of a remote's instances to
the local host) and -p <dest-project> (copy local instances into another
local project/pool, for the on-host backup leg on a second disk). Copy
all instances instead of only running ones, abort cleanly if the
instance list fails, and keep boot.autostart=false on every replica.

incus-backup.sh: add a local destination mode (-d local, now the
default) that writes dumps/rsyncs straight to the backup root without
ssh; add -b to override the /backup root, flock against overlapping
runs, set -u, non-zero exit when any step fails, and fix the invalid
`incus exec -n` flag that made MariaDB dumps fail on modern incus.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 19:57:09 +02:00
julien f5f8dd802d Remove wedding container from incus-backup DB 2026-07-23 12:53:04 +02:00
julien 438ecbfd9b Fix zfs-auto-snapshot.sh snap delete issue 2026-07-22 11:38:05 +02:00
julien 8bfd4f55d8 Add upgrade list log to incus-container-upgrade.sh 2026-07-22 11:36:56 +02:00
julien a5056198ab Add zfs-auto-snapshot.sh script 2025-12-08 16:18:13 +01:00
julien dceb17cd57 incus-copy: Add --refresh-exclude-older option 2025-12-08 16:06:22 +01:00
julien cf1f43ca9f incus-copy: Fix argument parser 2025-11-26 13:40:50 +00:00
julien 9327e9d050 first commit 2025-11-25 17:54:48 +00:00