Command reference
Every snapdir subcommand shares a common set of global options and reads the same
SNAPDIR_* environment variables. The overview documents that
shared surface — global flags, environment variables, and store URI schemes — while
each page below covers a single subcommand.
- Overview — global options,
SNAPDIR_*environment variables, and store URI schemes.
Snapshotting
-
snapdir manifest— print the manifest of a directory. -
snapdir id— print the manifest ID of a directory or a piped manifest. -
snapdir stage— save a snapshot of a directory into the local cache.
Distributing
-
snapdir push— push a snapshot to a store. -
snapdir fetch— fetch a snapshot from a store into the local cache. -
snapdir pull— fetch a snapshot from a store and check it out. -
snapdir checkout— check out a snapshot to a directory. -
snapdir sync— copy a snapshot directly between two stores.
Verifying
-
snapdir verify— verify the integrity of a staged snapshot. -
snapdir verify-cache— verify the integrity of the local cache. -
snapdir flush-cache— flush the local cache.
Catalog and history
-
snapdir locations— list directories and stores where snapshots have been recorded. -
snapdir ancestors— list ancestor snapshot IDs and their locations. -
snapdir revisions— list snapshot IDs created on a location.
Other
snapdir defaults— print default settings and arguments.snapdir version— print the version.