Commit Graph
5 Commits
Author SHA1 Message Date
Julien LutranandClaude Fable 5 c080c780ba Add plakar-incus-backup.sh: leg-4 driver (incus integration -> S3)
Thin wrapper chained after incus-copy in the same cron entry: backs
up the incus source (quiesced backup-project replicas via the plakar
incus integration) into @s3incus, prune + maintenance.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-24 17:53:02 +02:00
Julien LutranandClaude Fable 5 0dd8fed645 Add plakar-backup.sh: nightly plakar driver replacing incus-backup.sh
Dumps incus state + auto-discovered databases (MariaDB/MySQL either
binary naming, native and docker-hosted PostgreSQL, grants/globals),
backs up the dump tree and the fs sources listed in plakar-sources
into any plakar kloset (-k @s3), applies retention, optional sync to
a second store. Loud SKIP lines for the plakar-db-exclude opt-out.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-23 08:56:30 +02:00
Julien Lutran 6c4550a9ea Remove spot container from incus-backup DB 2026-08-22 12:12:23 +02:00
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