snapdir pull
Fetch a snapshot from a store and check it out to the given path.
pull is the one-step combination of snapdir fetch and
snapdir checkout: it downloads the snapshot from a
--store into the cache and materializes it at the destination directory.
Usage
snapdir pull [OPTIONS] [PATH]
Arguments
Options
pull accepts the global options; the most
relevant are --store (source), --id (snapshot to pull), and --linked to
materialize via symlinks into the cache.
Examples
Pull a snapshot from S3 into a new directory:
snapdir pull --id 1220abc... --store s3://my-bucket/snapshots ./restored
Pull from a local file store using symlinks:
snapdir pull --id 1220abc... --store file:///srv/backups --linked ./restored
See also
snapdir fetch— fetch only, no checkoutsnapdir checkout— check out an already-cached snapshotsnapdir push— the inverse direction- Pushing and pulling guide