Skip to content

export

canasta export

Export the database of a wiki in a Canasta instance

Synopsis

Export a wiki's database as a SQL dump file. The instance must be running. By default the dump is saved to .sql in the current directory. Use a .gz extension on the output path to get a gzip-compressed dump.

canasta export [flags]

Examples

  # Export a wiki's database to the default file
  canasta export -i myinstance -w main

  # Export to a specific file
  canasta export -i myinstance -w main -f /backups/main-backup.sql

  # Export as gzipped SQL
  canasta export -i myinstance -w main -f /backups/main-backup.sql.gz

Options

Flag Shorthand Description Default
--file -f Output file path (default: .sql)
--help -h help for export
--id -i Canasta instance ID
--wiki -w ID of the wiki to export

Options inherited from parent commands

Flag Shorthand Description Default
--verbose -v Verbose output

SEE ALSO

  • canasta - A CLI tool for Canasta installations.