Skip to main content

Backups

The platform backs up its database to the object store: every table, taken in one snapshot so that they agree, compressed with zstd, under backups/<time>-<id>.idekube.zst. The Backups page of the administration (backup:manage, which admins hold) lists them, previews upcoming scheduled runs, takes one now and downloads one through a link signed for a quarter of an hour.

Schedule and retention​

Backups use Proxmox-style calendar schedules and prune-backups retention policies configured in the backup settings section:

backup.DefaultMeaning
schedule_presetdailyoff, hourly, daily, weekly, monthly, or custom. The per-minute job backup.take checks whether a scheduled slot is due without double-firing or backfilling missed slots after downtime. Ad-hoc manual backups do not suppress scheduled runs.
schedule""Used when schedule_preset is custom. Accepts Proxmox / systemd OnCalendar expressions such as 02:00, *:0/15, mon..fri 03:30, sat 04:00, *-*-01 00:00, or shorthands (minutely, hourly, daily, weekly, monthly, yearly, quarterly, semiannually).
timezoneUTCIANA time zone (e.g. UTC, Asia/Shanghai, Europe/Paris) applied to both schedule evaluation and retention time buckets.
retention.keep_last0Always keep this many of the latest backups.
retention.keep_hourly0Keep the newest remaining backup for this many distinct hours that contain backups.
retention.keep_daily7Keep the newest remaining backup for this many distinct days that contain backups.
retention.keep_weekly0Keep the newest remaining backup for this many distinct ISO weeks (Monday start) that contain backups.
retention.keep_monthly0Keep the newest remaining backup for this many distinct calendar months that contain backups.
retention.keep_yearly0Keep the newest remaining backup for this many distinct calendar years that contain backups.

Retention tiers are evaluated newest-first in strict Proxmox order (keep_last → keep_hourly → keep_daily → keep_weekly → keep_monthly → keep_yearly). Backups already kept by an earlier tier mark their bucket as covered for coarser tiers, and time periods without backups do not consume quota. Setting all six retention fields to 0 keeps every backup.

A backup is taken while the platform runs, in a read-only transaction that blocks nobody. One is taken at a time; a replica that dies while taking one leaves it running, and it is marked failed after six hours.

What a backup holds is all the platform keeps in its database: accounts with their password hashes, teams, templates, workspaces, volumes, the ledger, the audit log, the settings changed at runtime, and what it sealed with its secret key, such as tokens of Git accounts. Keep the bucket as private as the database. It does not hold what the object store keeps already, course files and archives of volumes, nor the deployment's own settings file and secrets.

Restoring​

idekube restore <backup> replaces what a database holds with a backup: the name of one in the object store, a file, or - for standard input. It brings the schema up to date first and refuses a backup taken of another schema than the release's: restore with the release that took the backup, then upgrade. The whole restore is one transaction, so a restore that fails leaves the database as it was. Foreign keys are put back once the tables are filled, which checks what they hold.

To recover an installation:

  1. Install the same release, with the same secretKey (and previousSecretKeys), so that what the backup sealed opens again, and with the object store in its settings file if the backup is read from it.

  2. Scale the API servers to zero.

  3. Run the restore from a pod of the release, e.g. the first API server's, started with kubectl -n idekube debug or as a Job with the API server's image and environment:

    idekube restore backups/20261123T040000Z-42.idekube.zst
  4. Scale the API servers back. Workers keep running meanwhile: their agents link again and the platform compares what their clusters hold with what it was given back, as after any outage.