node-firestore-backup-restore
node-firestore-backup-restore copied to clipboard
Argument "collectionPath" must point to a collection, but was "${collectionPath}"
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?