snapdir stage
Save a snapshot of a directory into the local cache.
Staging walks the directory, writes its objects into the content-addressed cache, and records the resulting manifest so it can be verified, checked out, or pushed to a store later. See Stores and cache.
Usage
snapdir stage [OPTIONS] [DIR]
Arguments
Options
stage accepts the global options, including
--cache-dir, --checksum, --exclude, --paths, and --linked.
Examples
Stage the current directory into the default cache:
snapdir stage .
Stage into a specific cache directory, using symlinks instead of copies:
snapdir stage --cache-dir /var/snapdir/cache --linked ./project
See also
snapdir verify— check a staged snapshotsnapdir push— upload a staged snapshot to a storesnapdir checkout— materialize a staged snapshot- Snapshotting guide