Keyturn docsCommand reference

keyturn replica

replication

replica nowM

ask the server to replicate with another server now (replicate)

keyturn replica now <srv> [<db>] [--wait] [--console] [--direction pull|push|both] [--time-limit MINUTES] [--dry-run] [--timeout DURATION] [--interval DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica now mail2/Acmekeyturn replica now mail2/Acme apps/sales.nsf --direction pull --wait

replica listR

the replicas of a database the server's catalog knows, by replica id

keyturn replica list <db> [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica list names.nsfkeyturn replica list names.nsf -o csv

replica historyR

a database's replication history

keyturn replica history <db> [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica history names.nsf

replica statusR

the Replicator at a glance: its statistics, what is scheduled, and the replication Connection documents

keyturn replica status [--directory PATH] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica statuskeyturn replica status -o json

replica schedule listR

Connection documents: which servers replicate (and route mail) with which, and when

keyturn replica schedule list [--all] [--directory PATH] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica schedule listkeyturn replica schedule list -o csv

replica settings getR

a database's replication settings, as the server's catalog has them

keyturn replica settings get <db> [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica settings get names.nsf

replica settings setM

change a database's replication settings

keyturn replica settings set <db> [--cutoff-days N] [--disable] [--enable] [--priority low|medium|high] [--remove-old on|off] [--send-deletions on|off] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica settings set apps/sales.nsf --cutoff-days 180 --remove-old on --dry-runkeyturn replica settings set apps/sales.nsf --priority highkeyturn replica settings set apps/sales.nsf --send-deletions off --dry-run

replica formula showR

a database's replication formulas: which servers it replicates from, and each one's selective formula

keyturn replica formula show <db> [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica formula show apps/sales.nsfkeyturn replica formula show apps/sales.nsf -o json

replica formula setM

set a replica's selective replication formula from a server (Replication Settings › Advanced)

keyturn replica formula set <db> [--formula FORMULA] [--from SERVER|any] [--to SERVER|any] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica formula set apps/sales.nsf --formula 'SELECT Form = "Order"' --dry-runkeyturn replica formula set apps/sales.nsf --from hub/Acme --formula 'SELECT Region = "EMEA"'

replica formula removeM

remove a server's entry from a replica's replication formulas

keyturn replica formula remove <db> [--from SERVER|any] [--to SERVER|any] [--yes] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica formula remove apps/sales.nsf --from hub/Acme --dry-runkeyturn replica formula remove apps/sales.nsf --from any --yes

replica createM

create a replica of a database on another server, through the Administration Process

keyturn replica create <db> [--to SERVER] [--path PATH] [--wait] [--timeout DURATION] [--interval DURATION] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica create apps/sales.nsf --to mail2/Acme --dry-runkeyturn replica create apps/sales.nsf --to mail2/Acme --path apps/sales.nsf --wait --timeout 30m

replica deleteD

delete every replica of a database, through the Administration Process (after approval)

keyturn replica delete <db> [--yes] [--wait] [--timeout DURATION] [--interval DURATION] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn replica delete apps/old-sales.nsf --dry-runkeyturn replica delete apps/old-sales.nsf --yes --wait

replica topologyR

the replication topology of the directory: servers and the Connection documents that replicate between them

keyturn replica topology [--dot] [--server URL] [--directory PATH] [--user NAME] [--ca FILE]
Exampleskeyturn replica topologykeyturn replica topology --dot

replica logR

replication runs and their errors, from log.nsf: per database, what each run moved and what failed

keyturn replica log [<db>] [--since DURATION] [--errors] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn replica log