CLI:Canasta backup restore

From canasta

canasta > backup > 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

Flags

Flag Shorthand Description Default Required
--help -h help for restore
--skip-safety-backup Skip taking a safety backup before restore
--snapshot -s Snapshot ID
--wiki -w Restore only this wiki's database and per-wiki files
--id -i Canasta instance ID instance associated with current directory
--verbose -v Verbose output