willhlaw / node-firestore-backup-restore

Google Firebase Firestore backup and restore tool
91 stars 24 forks source link

Argument "collectionPath" must point to a collection, but was "${collectionPath}" #49

Open tdkehoe opened 6 years ago

tdkehoe commented 6 years ago

My backup looks great on my hard drive, thanks. But when I tried to restore a collection (not the entire database) I used this command:

firestore-backup-restore --backupPath /Users/TDK/LanguageTwo/backups/firestore/Dictionaries/Chinese/Words/ --restoreAccountCredentials /Users/TDK/LanguageTwo/myproject-firebase-adminsdk-qwerty12345.json

I got this error message:

Argument "collectionPath" must point to a collection, but was "${collectionPath}". Your path does not contain an odd number of components.

Dictionaries and Words are collections, so I'm pointing to a collection. Any idea what the problem is?