We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff13963 commit 8b8dd40Copy full SHA for 8b8dd40
docs/usage/backup-selective.md
@@ -36,6 +36,19 @@ This feature is useful in the following cases:
36
37
- Restoring a subset of collections along with the users and roles that manage them.
38
39
+To back up a specific namespace and include users and roles, run the following command:
40
+
41
+```sh
42
+pbm backup --ns="mydb.*" --with-users-and-roles
43
+```
44
45
+where:
46
47
+`--ns="mydb.*"` specifies the namespace (all collections in mydb).
48
49
+`--with-users-and-roles` ensures that users and roles defined in mydb are included in the backup.
50
51
52
## Next steps
53
54
[List backups](../usage/list-backup.md){.md-button}
0 commit comments