snapdir checkout
Check out a snapshot to a directory.
checkout materializes a snapshot that is already in the local cache into a
destination directory. By default it only adds or replaces snapshot files; use
--delete when the destination should become an exact mirror of the snapshot.
If the snapshot is not yet cached, fetch it first with
snapdir fetch or use snapdir pull.
Usage
snapdir checkout [OPTIONS] [DIR]
Arguments
Options
Examples
Check out a cached snapshot into a directory:
snapdir checkout --id 1220abc... ./restored
Check out using read-only symlinks into local objects:
snapdir checkout --id 1220abc... --linked ./readonly-view
Mirror a snapshot into an existing destination, keeping a local file:
snapdir checkout --id 1220abc... --delete --exclude '\.env$' ./served
See also
snapdir fetch— download a snapshot into the cache firstsnapdir pull— fetch and check out in one stepsnapdir stage— record a directory into the cache