canasta import

From Canasta Wiki

canasta > import

canasta import

Import a database into an existing wiki

Synopsis

Import a database dump into an existing wiki, replacing its current database. The instance must be running. Supported formats are .sql and .sql.gz files.

To create a new wiki from a database dump, use the --database flag with canasta create or canasta add instead.

canasta import [flags]

Examples

canasta import -w main -d dump.sql

Flags

Flag Shorthand Description Default Required Orchestrator
--database -d Path to SQL dump file (.sql or .sql.gz) Both
--id -i Canasta instance ID * Both
--wiki -w ID of the wiki to import into Both
--wiki-settings -l Path to per-wiki Settings.php to replace Both

* Defaults to the Canasta instance matching the current directory, if any.

Global Flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both