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 snapshots a quiescent tree. If the input changes during the walk, staging fails with an in-flux error rather than recording an incoherent snapshot.
Examples
Stage the current directory into the default cache:
snapdir stage .
Stage into a specific cache directory:
snapdir stage --cache-dir /var/snapdir/cache ./project
See also
snapdir verify-cache— check the local cachesnapdir push— upload a staged snapshot to a storesnapdir checkout— materialize a staged snapshot- Snapshotting guide