IF Commons GitHub

mirror promote

verbdestructive

Make a replica the primary, saying what that loses.

Program anyfs-writer. Origin anyfs.

Governance: the action

What the verb is and may do, as governance says it. Each annotation is expressed by the surfaces or says why it is not.

PropertyValue
kindaction
effectdestructive
idempotentfalse
audienceboth
tierwriter
dryRuntrue
checkfalse
reachChannelslocal, mcp
reachReadOnlyfalse
reachNeedsTtyfalse
reachRunsAscaller
reachConfirmationflag

Operands

OperandMeaning
PRIMARYThe current primary.
REPLICAThe replica to make the primary.

Options

OptionMeaningProperties
--accept-lossAccept to lose up to N changes of the old primary that the replica does not have.type=value, required=false, standard=false, humanOnly=false, valueName=N
--accept-divergenceAccept that the replica holds changes of its own.type=flag, required=false, standard=false, humanOnly=false, negatable=false, default=false
--includeOnly paths that match a glob (a * is within one name, ** crosses directories); give it again for more.type=many, required=false, standard=false, humanOnly=false, valueName=GLOB
--excludeLeave out paths that match a glob; give it again for more.type=many, required=false, standard=false, humanOnly=false, valueName=GLOB
--plan-hashApply only the plan with this hash, which a --dry-run printed: if the stores changed since, nothing is applied.type=value, required=false, standard=false, humanOnly=false, valueName=HASH
--jsonWrite one JSON document and nothing else for a person.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--quietShow only how it ended.type=flag, short=q, required=false, standard=true, humanOnly=false, negatable=false, default=false
--verboseShow every step as it happens.type=flag, short=v, required=false, standard=true, humanOnly=false, negatable=false, default=false
--colorUse colour where the terminal shows it (--no-color turns it off).type=flag, required=false, standard=true, humanOnly=false, negatable=true, default=true
--non-interactiveNever ask a question: where one is needed, fail and say so.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--dry-runShow what would change and change nothing.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--yesConfirm the destruction without asking.type=flag, short=y, required=false, standard=true, humanOnly=false, negatable=false, default=false

Examples

anyfs mirror promote --dry-run fleet:/ s3backup:/fleet  # What promoting the replica would lose.

Physical: what it is drawn as

anyfs mirror promote

cli-command. Make a replica the primary, saying what that loses.

PropertyValue
usageanyfs mirror promote
wordsmirror, promote
tierwriter

anyfs_mirror_promote

mcp-tool. Make a replica the primary, saying what that loses. (action, effect destructive.)

PropertyValue
titleanyfs mirror promote
toolNameanyfs_mirror_promote
readOnlyHintfalse
destructiveHinttrue
idempotentHintfalse
inputsacceptLoss, acceptDivergence, include, exclude, planHash, dryRun, PRIMARY, REPLICA
requiredPRIMARY, REPLICA
tierwriter

Not drawn

  • rest: its reach policy does not name the rest channel

Titles, headings, exports, tables, columns and requirements. Esc closes.