Skip to content
Vaulthalla LogoVaulthalla

vh sync and vh resolve

Reference for vh sync resolve and vh resolve - deciding sync conflicts recorded under the ask policy.

Conflicts recorded under the ask policy (S3/R2 vaults) wait for a decision while everything else keeps syncing. A vault's sync settings and runs are vh vault sync.

1vh sync resolve                                         # interactive session (needs a terminal)2vh sync resolve --list [--vault <vault>] [--json]3vh sync resolve <id>... --keep-local | --keep-remote [--json]4vh sync resolve --vault <vault> --all --keep-local | --keep-remote [--yes]

Keep local uploads the local copy over the remote object; keep remote downloads the remote object over the local copy. A decision needs vault.sync.action.resolve_conflicts and Overwrite on the file, and is refused when either side changed since the conflict was recorded. Exit status is 2 when any conflict was not resolved; each one is reported with its reason. Without a terminal, --all needs --yes. See Resolving Conflicts.

Sync Conflicts

vh sync
CommandArgumentsAliasesEffectSummary
destructiveResolve sync conflicts recorded under the 'ask' conflict policy (S3/R2 vaults).

vh sync resolve

vh sync resolve [options]
vh sync resolve
OptionAliasesTypeDefaultSummary
-vvaultOnly this vault (ID or name).
--localflagKeep the local copy: upload it over the remote object.
--remoteflagKeep the remote copy: download it over the local copy.
-lflagList open conflicts and exit.
flagEvery open conflict in --vault (needs --vault and a decision).
-yflagDo not ask before resolving with --all.
-jflagPrint JSON (the ws sync.conflicts.* shapes).

vh resolve

vh resolve [options]

vh resolve is a shortcut for vh sync resolve and takes the same arguments.

vh resolve
OptionAliasesTypeDefaultSummary
-vvaultOnly this vault (ID or name).
--localflagKeep the local copy: upload it over the remote object.
--remoteflagKeep the remote copy: download it over the local copy.
-lflagList open conflicts and exit.
flagEvery open conflict in --vault (needs --vault and a decision).
-yflagDo not ask before resolving with --all.
-jflagPrint JSON (the ws sync.conflicts.* shapes).
vh sync and vh resolve | Vaulthalla