snapdir sync
Copy a snapshot (its manifest + objects) directly between two stores, streaming through memory — no local staging.
sync transfers a snapshot from one store to another without writing it to the
local cache. This is the efficient way to replicate snapshots between, say, two
S3 buckets or from S3 to local. See the Syncing guide.
Usage
snapdir sync [OPTIONS] --from <STORE> --to <STORE>
Options
sync requires both --from and --to:
It also accepts the global options; the most
relevant are --id (snapshot to copy) and the transfer-tuning flags -j/--jobs,
--limit-rate, and --adaptive.
Examples
Copy a snapshot between two S3 buckets:
snapdir sync --id 1220abc... --from s3://bucket-a/snapshots --to s3://bucket-b/snapshots
Copy a snapshot from S3 down to a local file store:
snapdir sync --id 1220abc... --from s3://my-bucket/snapshots --to file:///srv/backups
See also
snapdir push— upload from a directory or staged snapshotsnapdir fetch— download a snapshot into the cache- Syncing guide
- Stores guide