Keyturn docsHow-to guides

Keep databases healthy

Find the databases that need work with db select, then act on them. A server task's own walk (--all) runs one console command, waits until it's done, and reports the total.

keyturn db select mail --live --where "freeMB > 20" --context-group domain
keyturn db compact mail/ --reduce-size --servers mail1,mail2 --fan-out-changes --yes --otp-cmd 'otp $SERVER'
db select of bloated mail files
Before: 38 mail files with free space to recover, on two servers.
compaction totals
After: what each server recovered and the total, summed from Domino's own Compact lines.
JobCommand
Compact a whole serverdb compact --all
Fixup / Updalldb fixup --all, db updall --all --rebuild-views
Full-text indexesdb fti update --all; create missing ones: db fti create --where '!fti'
Refresh designdb refresh-design --all --template StdR14Mail
ODS upgradedb ods report --all-servers, then db compact --where 'ods < 55' --copy-style
Quotasdb quota set --folder mail --limit 2048 --warning 1800 (undoable)
Sign designdb sign --template StdR14Mail --design-only
What fills a databasedb size names.nsf, db info, db activity
Agentsagent list apps/sales.nsf, agent run apps/sales.nsf "Nightly Cleanup" --wait 90s
Stale databasesdb select --where 'modifiedDays > 365' --paths > stale.txt, then a reviewed plan of db delete … --yes lines