snapdir fetch
Fetch a snapshot from a store into the local cache.
fetch downloads the manifest and objects for a snapshot from a --store into
the local cache, without checking them out to a working directory. Use
snapdir checkout afterward to materialize the files, or
snapdir pull to do both at once.
Usage
snapdir fetch [OPTIONS]
Options
fetch takes no positional arguments. It accepts the
global options; the most relevant are --store
(source), --id (snapshot to fetch), and the transfer-tuning flags -j/--jobs,
--limit-rate, and --adaptive.
Examples
Fetch a snapshot by ID from an S3 store:
snapdir fetch --id 1220abc... --store s3://my-bucket/snapshots
Fetch from a local file store, adaptively tuning concurrency:
snapdir fetch --id 1220abc... --store file:///srv/backups --adaptive
See also
snapdir checkout— materialize a fetched snapshotsnapdir pull— fetch and check out in one stepsnapdir push— the inverse direction- Pushing and pulling guide