snapdir checkout

Check out a snapshot to a directory.

checkout materializes a snapshot that is already in the local cache into a destination directory. If the snapshot is not yet cached, fetch it first with snapdir fetch or use snapdir pull.

Usage

snapdir checkout [OPTIONS] [DIR]

Arguments

Argument Description
[DIR] Destination directory.

Options

checkout accepts the global options; the most relevant are --id (snapshot to check out), --cache-dir, --linked (symlink into the cache instead of copying), and --force.

Examples

Check out a cached snapshot into a directory:

snapdir checkout --id 1220abc... ./restored

Check out using symlinks into the cache, overwriting an existing directory:

snapdir checkout --id 1220abc... --linked --force ./restored

See also