Command reference

snapdir has a small universal output surface and command-specific option families. The overview documents that shared model, environment variables, and store URI schemes, while each page below covers one subcommand.

  • Overview — command 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.

  • snapdir diff — compare manifest sides without downloading objects.

  • snapdir size — report the logical + physical (deduplicated) byte size of a snapshot, store, or directory.

Verifying

Catalog and history

Other