snapshot stage
The mirrorctl snapshot stage command publishes a specific snapshot to the staging environment.
This allows you to test a snapshot before promoting it to production.
mirrorctl snapshot stage <mirror-id> <snapshot-name> [flags]Usage
Publish a snapshot to staging:
mirrorctl snapshot stage debian "2024-01-15T10-30-00Z"Stage with a custom configuration file:
mirrorctl snapshot stage debian "testing" --config /path/to/custom.tomlArguments
| Argument | Required | Description |
|---|---|---|
mirror-id |
Yes | The ID of the mirror containing the snapshot. The mirror ID must match a key defined in the [mirrors] section of your configuration file. |
snapshot-name |
Yes | The name of the snapshot to publish to staging. The snapshot must exist. |
Flags
| Flag | Default | Usage |
|---|---|---|
--config, -c |
/etc/mirrorctl/mirror.toml |
Path to the configuration file. |
--verbose-errors |
false |
Show detailed error information including stack traces. |
Exit Status
The command exits with status 0 on success and 1 on error.
See Also
- Configuration Reference - Details on snapshot configuration
- snapshot create - Create a snapshot
- snapshot list - List snapshots
- snapshot publish - Publish snapshot to production
- snapshot promote - Promote staged snapshot to production