mongoshield keygen
Generate an age key pair for encrypted backups.
mongoshield keygen [options]The public recipient (age1…) goes in your config: backups only need it. The secret identity is needed to restore. Store a copy offline (password manager, printed in a safe): if it is lost, encrypted backups cannot be read.
Options
Section titled “Options”| Option | Description |
|---|---|
-o, --output <path> | Write the identity to this file (mode 0600; never overwrites). |
The global options (--config, --json, --quiet,
--verbose, --no-color, --yes) work here too.
Examples
Section titled “Examples”Create a key file:
mongoshield keygen --output backup.keyUse the public key for backups:
mongoshield backup --recipient age1…MongoShield is MIT licensed and is not affiliated with, endorsed by or sponsored by MongoDB, Inc. MongoDB is a trademark of MongoDB, Inc.Privacy policy