canasta backup create
From canasta
canasta backup create
Create a backup
Synopsis
Create a backup snapshot. Dumps all wiki databases, stages config/extensions/images/skins, and uploads to the repository.
A wiki whose data extends into a second database — Cargo's $wgCargoDBname being the usual case — declares it with canasta backup databases add.
Declared databases are dumped in the same invocation as the wiki's own, so both come from one transaction. That matters for Cargo, whose data tables live in the extra database while the metadata tracking them (cargo_pages) lives in the wiki database: captured at different moments, the metadata under-reports, and editing an affected page appends duplicate rows instead of replacing them.
canasta backup create [flags]
Examples
canasta backup create -t before-upgrade
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--id |
-i |
Canasta instance ID | * | Both | |
--tag |
-t |
Backup tag | ✓ | 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 |