mongoshield hold
Protect a backup from pruning.
mongoshield hold <backup> [options]Arguments
Section titled “Arguments”| Argument | Description | |
|---|---|---|
<backup> | required | Backup id, or "latest" |
Options
Section titled “Options”| Option | Description |
|---|---|
--reason <text> | Why the backup must be kept (required). |
--by <name> | Who placed the hold (default: user@host). |
--from <storage-url> | Where backups are stored: ./dir, file:///abs, s3://bucket/prefix (default: config). |
The global options (--config, --json, --quiet,
--verbose, --no-color, --yes) work here too.
Examples
Section titled “Examples”Keep the backup taken before a migration:
mongoshield hold latest --reason "before the v2 schema migration"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