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
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
| destructive | Resolve sync conflicts recorded under the 'ask' conflict policy (S3/R2 vaults). |
vh sync resolve
vh sync resolve [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-v | vault | Only this vault (ID or name). | ||
--local | flag | Keep the local copy: upload it over the remote object. | ||
--remote | flag | Keep the remote copy: download it over the local copy. | ||
-l | flag | List open conflicts and exit. | ||
flag | Every open conflict in --vault (needs --vault and a decision). | |||
-y | flag | Do not ask before resolving with --all. | ||
-j | flag | Print 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.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-v | vault | Only this vault (ID or name). | ||
--local | flag | Keep the local copy: upload it over the remote object. | ||
--remote | flag | Keep the remote copy: download it over the local copy. | ||
-l | flag | List open conflicts and exit. | ||
flag | Every open conflict in --vault (needs --vault and a decision). | |||
-y | flag | Do not ask before resolving with --all. | ||
-j | flag | Print JSON (the ws sync.conflicts.* shapes). |
