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. Use
--delete when the destination should be pruned to exactly the files in the
snapshot.
Usage
snapdir pull [OPTIONS] [PATH]
Arguments
Options
If the manifest is cached but local objects are missing, pull re-fetches the
missing objects before checkout.
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 read-only symlinks:
snapdir pull --id 1220abc... --store file:///srv/backups --linked ./restored
Keep a runtime directory as an exact mirror of a snapshot:
snapdir pull --id 1220abc... --store file:///srv/backups --linked --delete ./runtime-inputs
See also
snapdir fetch— fetch only, no checkoutsnapdir checkout— check out an already-cached snapshotsnapdir push— the inverse direction- Pushing and pulling guide