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

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

Open tdkehoe opened this issue 6 years ago • 0 comments

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?

tdkehoe avatar Aug 23 '18 23:08 tdkehoe