sitectl service namespace. Operators use sitectl mariadb ... from any context whose project has a MariaDB-compatible service.
Backups
Export a SQL backup from the active context:backup exports all databases. The command runs mariadb-dump or mysqldump inside the database service and reads the root password from /run/secrets/DB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD, or MYSQL_ROOT_PASSWORD.
Use --service when a project uses a different database service name.
Restore
Import a SQL backup into the active context:--yolo, sitectl prompts before replacing the target database.
Sync
Sync a database artifact between two sitectl contexts:Inspection
Check the MariaDB container status:sitectl, not to a dedicated MariaDB CLI plugin.
Reference
backup
Export a MariaDB SQL backup from the active compose stack
| Flag | Default | Description |
|---|---|---|
--all-databases | false | Export all databases explicitly |
--gzip | false | Compress the backup with gzip |
-o, --output | Write SQL backup to a host path instead of stdout | |
--service | mariadb | MariaDB compose service name |
restore
Import a MariaDB SQL backup into the active compose stack
import
| Flag | Default | Description |
|---|---|---|
--database | Database to replace before import | |
--service | mariadb | MariaDB compose service name |
--yolo | false | Apply destructive database changes without confirmation |
sync
Sync a MariaDB database artifact between contexts
| Flag | Default | Description |
|---|---|---|
--backup-dir | /tmp/sitectl-mariadb-jobs/db-backup | Directory on the source host used to cache backup artifacts |
--database | Database to sync instead of all databases | |
--fresh | false | Always take a fresh backup instead of reusing one from today |
--service | mariadb | MariaDB compose service name |
--source | Source sitectl context | |
--target | Target sitectl context | |
--yolo | false | Skip the confirmation prompt before importing |
status
Show the compose service container status
| Flag | Default | Description |
|---|---|---|
--service | mariadb | Compose service name |

