push
Push a snapshot to remote storage.
clonit push <target> [snapshot_index] [flags]Arguments
Section titled “Arguments”| Argument | Description | Required |
|---|---|---|
target |
Name of the target | Yes |
snapshot_index |
Index of the snapshot to push | No (defaults to latest) |
| Flag | Type | Default | Description |
|---|---|---|---|
--no-verify |
bool | false |
Skip checksum verification after upload |
Description
Section titled “Description”Uploads a snapshot to the remote storage provider configured in the target’s linked storage profile. By default, the latest snapshot is pushed unless a specific snapshot index is provided.
After uploading, a checksum verification is performed to ensure data integrity. Use --no-verify to skip this check.
The target must have a storage profile linked to it. See storage-profile add for configuring storage profiles.
Examples
Section titled “Examples”Push the latest snapshot:
clonit push mydbPush a specific snapshot by index:
clonit push mydb 0Push without checksum verification:
clonit push mydb --no-verifyAuto-push
Section titled “Auto-push”The build command automatically pushes the snapshot to storage after a successful build if the target has a storage profile configured. To skip this, use clonit build --no-push or set defaults.auto_push: false in the config. See build for details.
See Also
Section titled “See Also”- build – Build a snapshot (with optional auto-push)
- pull – Pull a snapshot from remote storage
- storage-profile – List storage profiles
- snapshots – List snapshots for a target