node-firestore-backup-restore icon indicating copy to clipboard operation
node-firestore-backup-restore copied to clipboard

Feature/exclusions

Open Endran opened this issue 6 years ago • 0 comments

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"

Endran avatar Nov 25 '18 21:11 Endran