snapdir push
Push a snapshot to a store given its path or a staged manifest ID.
push uploads the snapshot's manifest and objects to a --store. You can push a
directory directly, or push an already-staged snapshot by --id.
Usage
snapdir push [OPTIONS] [PATH]
Arguments
Options
push accepts the global options. The most
relevant are --store (destination), --id (push a staged snapshot), and the
transfer-tuning flags -j/--jobs, --limit-rate, and --adaptive.
Examples
Push the current directory to an S3 store:
snapdir push --store s3://my-bucket/snapshots .
Push an already-staged snapshot by ID, rate-limited:
snapdir push --id 1220abc... --store file:///srv/backups --limit-rate 10M
See also
snapdir fetch— download a snapshot into the cachesnapdir pull— fetch and check out in one stepsnapdir sync— copy directly between two stores- Pushing and pulling guide
- Stores guide