Skip to content
Vaulthalla LogoVaulthalla

vh recovery and vh snapshot

Reference for vh recovery and vh snapshot - list, plan, restore and delete earlier versions of files, and take local snapshots.

Earlier versions of files come from three places: local snapshots you take, local versions kept automatically when local versioning is on, and the provider's own object versions (an AWS S3 bucket with versioning enabled, or a Backblaze B2 bucket, which always keeps versions). Their ids are snap-<id>, lv-<id> and pv-<id>. A vault's recovery settings (which of these it keeps) are vh vault recovery; undeleting a whole vault is vh vault restore. See File Recovery for how each kind of history works and what it costs.

1vh snapshot create <vault> <path> [--name <name>] [--json]2vh recovery list <vault> [path] [--refresh] [--snapshots-only|--versions-only|--provider-only] [--limit <n>] [--json]3vh recovery plan <vault> <path> --at <ISO-8601 time> [--prune] [--to <path>] [--json]4vh recovery restore <recovery-id> [--to <path>] [--yes] [--accept-unverified] [--json]5vh recovery restore <plan-id> --token <token> [--accept-unverified] [--json]6vh recovery costs <vault> [--json]

Recovery Points

vh recovery
CommandArgumentsAliasesEffectSummary
<vault> <path>ls, historyreadRecovery points of a vault, or of one path (a file's history, or the points under a directory): snapshots, local versions and provider versions.
<recovery_id>info, showreadDetails of one recovery point: what it holds, its key version, retention and whether it can be restored (and why not).
<source> <path>previewreadPlan a restore without changing anything: per item create, overwrite, skip, conflict, remove or unavailable, the method, a request/cost estimate, warnings and blockers.
<plan>applydestructiveRun a restore plan, or plan and run one for a recovery id.
<recovery_id>remove, rmdestructiveDelete a snapshot or a local version (filesystem Delete on its path).
<vault>costreadEstimated recovery costs for a vault: the provider versioning surcharge (separate from the current object storage), recovery operations and what is not modelled, with ranges, basis and catalog freshness.

vh recovery list

vh recovery list <vault> <path> [options]

recovery list with a file path shows that file's history; --refresh lists the provider's versions of the path first (metadata only). You only see points you can read.

vh recovery list
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
n200At most N points.
flagList the provider's versions of the path first (metadata only, request-budgeted).
flagOnly local snapshots.
flagOnly local versions.
flagOnly provider versions.
flagPrint the result as JSON (the ws shapes).

vh recovery inspect

vh recovery inspect <recovery_id> [--json]
vh recovery inspect
OptionAliasesTypeDefaultSummary
flagPrint the result as JSON (the ws shapes).

vh recovery plan

vh recovery plan <source> <path> [--owner id|name] [--to <path>] [--at <time>] [--prune] [--json]

plan changes nothing: it shows what each item would do (create, overwrite, skip, conflict, remove, unavailable), the size and method, a provider request and cost estimate, warnings and blockers, and the plan id and token (valid 30 minutes). A plan with --at is a timestamp-based reconstruction from each file's version history, not an atomic snapshot; only a local snapshot is taken in one pass. It needs an S3 vault with provider versions. --prune also removes files that did not exist at that time.

vh recovery plan
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
pathRestore under this vault path instead of the original paths.
timePoint in time: restore the state as of this ISO-8601 UTC time.
flagPoint in time: also remove files that did not exist at that time.
flagPrint the result as JSON (the ws shapes).

vh recovery restore

vh recovery restore <plan> [--token <token>] [--to <path>] [--yes] [--accept-unverified] [--json]

restore <recovery-id> plans, shows the plan and asks before it runs; type RESTORE when anything is overwritten or removed (a plain yes/no otherwise). --yes skips the question for scripts. A plan made with vh recovery plan runs with its id and the --token it printed, which is the confirmation. Every item is authorized again, and a destination that changed after the plan was made is reported as a conflict and left alone. Provider versions Vaulthalla did not write need --accept-unverified (or type UNVERIFIED). The exit status is 1 when anything was not restored and 2 when the restore was refused; run the plan again (<plan-id> --token) to resume an interrupted or partial restore.

vh recovery restore
OptionAliasesTypeDefaultSummary
tokenThe plan's token (from vh recovery plan); confirms without a prompt.
pathRestore under this vault path instead of the original paths.
flagDon't ask: confirm the action (for scripts).
flagAlso restore provider versions Vaulthalla did not write.
flagPrint the result as JSON (the ws shapes).

vh recovery delete

vh recovery delete <recovery_id> [--yes]

recovery delete removes snapshots and local versions (type DELETE, or --yes); provider versions are removed by the bucket's retention, and a local version still waiting to be uploaded can't be deleted.

vh recovery delete
OptionAliasesTypeDefaultSummary
flagDon't ask: confirm the action (for scripts).

vh recovery costs

vh recovery costs <vault> [--owner id|name] [--json]

Shows the versioning surcharge separately from the current object storage, the cost of recovery operations and what is not modelled, with ranges, the basis of each figure (observed, scenario or illustrative) and the price catalog's freshness. A figure that can't be estimated says so and why; it is never shown as zero. The figures are computed on the host and are estimates, not provider invoices.

vh recovery costs
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
flagPrint the result as JSON (the ws shapes).

Snapshots

Snapshots need the recovery mode local-snapshots (vh vault recovery set <vault> --mode local-snapshots).

vh snapshot
CommandArgumentsAliasesEffectSummary
<vault> <path>new, takewriteTake a named local snapshot of a file or directory tree.
<vault> <path>lsreadList a vault's snapshots, or those taken of a path (the path is optional).
<snapshot_id>remove, rmdestructiveDelete a snapshot (filesystem Delete on its path).

vh snapshot create

vh snapshot create <vault> <path> [--owner id|name] [--name <name>] [--json]
vh snapshot create
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
nameA name for the snapshot.
flagPrint the result as JSON (the ws shapes).

vh snapshot list

vh snapshot list <vault> <path> [--owner id|name] [--json]
vh snapshot list
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
flagPrint the result as JSON (the ws shapes).

vh snapshot delete

vh snapshot delete <snapshot_id> [--yes]
vh snapshot delete
OptionAliasesTypeDefaultSummary
flagDon't ask: confirm the action (for scripts).