node-firestore-backup-restore
node-firestore-backup-restore copied to clipboard
Feature/exclusions
Exclude collection or document
To exclude collections or documents from backup you can use the option --exclude
.
-
-E
,--exclude
- Comma separated list of excluded paths, use * for document id wildcard.
All documents and subcollections following a match will be excluded. By specifying the document ID a specific subcollection can be excluded. Use *
for document ID wildcard.
Example:
firestore-backup-restore --accountCredentials path/to/account/credentials/file.json --backupPath /backups/myDatabase \
--exclude "/logs,/users/*/details,/settings/private"