CLI command
skarbiec mirror publish
Make every skarbiec maintain pass on this host push the Git ciphertext mirror, so it carries the owner's changes instead of the last push someone ran by hand.
Invocation#
skarbiec mirror publishPurpose#
Make every skarbiec maintain pass on this host push the Git ciphertext mirror, so it carries the owner's changes instead of the last push someone ran by hand.
Required inputs and options#
- Nothing. Only the vault's owner publishes: a replica that pushed would replace the owner's ciphertext with its own copy, so publishing is never inferred from a mirror existing.
Output and state effects#
- Sets skarbiec.publish true in the mirror's own Git configuration, journals sync-publish and prints ok, publish true and sync_dir. From then on each maintain pass runs mirror push, and doctor's mirror check reads what was last pushed from disk, without a fetch, and fails when the live vault changed after it (mirror-never-pushed, mirror-stale).
Refusals#
- A flag or a word exits 2 with the mirror usage (arguments-flag-unknown, arguments-extra). A host without a mirror is mirror-absent, naming the directory and mirror init; git refusing to write its configuration is mirror-git-refused, with the command and how git ended. A maintain pass that cannot read the setting is mirror-publish-unread, never read as a host that does not publish.