Skip to content

push

Push a snapshot to remote storage.

clonit push <target> [snapshot_index] [flags]
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

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.

Push the latest snapshot:

clonit push mydb

Push a specific snapshot by index:

clonit push mydb 0

Push without checksum verification:

clonit push mydb --no-verify

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.

  • 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