steadyequipment / node-firestore-backup

Google Firebase Firestore backup tool
190 stars 51 forks source link

databaseStartPath does not work #29

Closed martinkronstad closed 6 years ago

martinkronstad commented 6 years ago

databaseStartPath does not seem to do anything.

Doing this will back up everything:

sudo firestore-backup -a sAccount.json --databaseStartPath /orgs -B ./april/06/

lewchuk-inkling commented 6 years ago

I believe the order of the arguments to this Object.assign needs to be reversed: https://github.com/steadyequipment/node-firestore-backup/blob/master/lib/index.js#L20. The empty string value of databaseStartPath is overwritting any passed in the options.