Skip to content

Feature/exclusions#56

Open
Endran wants to merge 2 commits into
willhlaw:masterfrom
Endran:feature/exclusions
Open

Feature/exclusions#56
Endran wants to merge 2 commits into
willhlaw:masterfrom
Endran:feature/exclusions

Conversation

@Endran

@Endran Endran commented Nov 25, 2018

Copy link
Copy Markdown

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants