Skip to content

restore

canasta backup restore

Restore a backup

Synopsis

Restore a Canasta installation from a backup snapshot. By default, a safety snapshot is taken before restoring. The restore replaces configuration files, extensions, images, skins, public_assets, .env, docker-compose.override.yml, my.cnf, and all wiki databases with the contents of the specified snapshot.

Use -w/--wiki to restore only a single wiki's database, per-wiki settings, images, and public assets from the backup, leaving shared files untouched.

canasta backup restore [flags]

Examples

  # Restore a snapshot by ID
  canasta backup restore -i myinstance -s abc123

  # Restore without taking a safety snapshot first
  canasta backup restore -i myinstance -s abc123 --skip-safety-backup

  # Restore only a single wiki's database
  canasta backup restore -i myinstance -s abc123 -w wiki2

Options

Flag Shorthand Description Default
--help -h help for restore
--skip-safety-backup `` Skip taking a safety backup before restore
--snapshot -s Snapshot ID (required)
--wiki -w Restore only this wiki's database and per-wiki files

Options inherited from parent commands

Flag Shorthand Description Default
--id -i Canasta instance ID
--verbose -v Verbose Output

SEE ALSO