Backups
Manage database and filesystem backups for your cloud environments.
Backup types
Section titled “Backup types”The CLI supports two backup types:
- database — backs up your database (default)
- filesystem — backs up persistent storage volumes
All backup commands default to database type. Use --type filesystem to work with filesystem backups.
List backups
Section titled “List backups”qc backup list| Flag | Description |
|---|---|
--type <type> | Backup type: database or filesystem (default: database) |
--json | Output as JSON |
--org <org> | Override organization |
--app <app> | Override application |
--env <env> | Override environment |
--platform <platform> | Override active platform |
Examples
Section titled “Examples”# List database backupsqc backup list
# List filesystem backupsqc backup list --type filesystem
# Output as JSON for scriptingqc backup list --jsonCreate a backup
Section titled “Create a backup”qc backup createIf run without flags, the CLI prompts you to select the backup type and enter a description.
| Flag | Description |
|---|---|
--type <type> | Backup type: database or filesystem (default: database) |
--description <text> | Description for the backup |
--org <org> | Override organization |
--app <app> | Override application |
--env <env> | Override environment |
--platform <platform> | Override active platform |
Examples
Section titled “Examples”# Interactive: prompts for type and descriptionqc backup create
# Non-interactiveqc backup create --type database --description "Pre-deployment backup"
# Filesystem backupqc backup create --type filesystem --description "Before storage migration"Download a backup
Section titled “Download a backup”qc backup download [backupId]If no backup ID is provided, the CLI shows a list of completed backups to choose from.
| Flag | Description |
|---|---|
--type <type> | Backup type: database or filesystem (default: database) |
--output <path> | Output directory (default: ./downloads) |
--org <org> | Override organization |
--app <app> | Override application |
--env <env> | Override environment |
--platform <platform> | Override active platform |
Examples
Section titled “Examples”# Interactive: select from available backupsqc backup download
# Download a specific backup by IDqc backup download bk-abc123
# Download to a custom directoryqc backup download --output ./my-backupsDelete a backup
Section titled “Delete a backup”qc backup deletePresents a list of backups to select from, then asks for confirmation before deleting.
| Flag | Description |
|---|---|
--type <type> | Backup type: database or filesystem (default: database) |
--org <org> | Override organization |
--app <app> | Override application |
--env <env> | Override environment |
--platform <platform> | Override active platform |