Hello! Thanks for visiting! mirrorctl is still a young project, and the documentation is still a work-in-progress.
snapshot stage

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.toml

Arguments

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