Comments (14)
Hi @derd, please try again in v0.2.3
from firestore-backup-restore.
i give buffer string its return
status: false,
message: 'ENOENT: no such file or directory,
from firestore-backup-restore.
Hi @derd, what is the code that you are using to restore? And how do you organize your data?
from firestore-backup-restore.
Hi @derd, what is the code that you are using to restore? And how do you organize your data?
here is the code.
data i want to restore.
here is the function log.
please help me out.
from firestore-backup-restore.
Hi @derd, the restore feature is based on a backup file on your computer. If you download from the storage and pass it directly to the script, it may not work. Can you download the file in advance and re-run the restore script?
from firestore-backup-restore.
Hi @derd, the restore feature is based on a backup file on your computer. If you download from the storage and pass it directly to the script, it may not work. Can you download the file in advance and re-run the restore script?
error234 { status: false, message: 'ENOENT: no such file or directory, open \'./backup.json\'' }
SyntaxError: Unexpected token u in JSON at position 0 at Object.parse (native) at ReadFileContext.callback (/user_code/node_modules/firestore-export-import/dist/import.js:5:20) at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:367:13)
when using local file i get this in function log.
from firestore-backup-restore.
Hi @derd, check the path of your JSON file. You can use an absolute path if you want.
from firestore-backup-restore.
@dalenguyen thanks for help out but , sorry file is location no problem with that.. i have double check...
from firestore-backup-restore.
anything i missed out @dalenguyen, so i correct my self.
from firestore-backup-restore.
@derd I'm not sure if you don't have sample code to experiment with. You can start by taking a look at the test folder: https://github.com/dalenguyen/firestore-backup-restore/tree/master/test
from firestore-backup-restore.
@dalenguyen i look the code same no different at all but i am using cloud functions so its that problem? if yes so what can i do.
from firestore-backup-restore.
@derd, it's true. The backup uses fs.readFile() in order to get the file's content. It won't work if you pass a JSON directly to it. I need to rewrite the function in order to support this new feature.
from firestore-backup-restore.
@dalenguyen it's great pass JSON directly so, i wait for new feature. thanks for support. now i close this issue.
from firestore-backup-restore.
Thank you for your fast support @dalenguyen thanks..
from firestore-backup-restore.
Related Issues (20)
- Convert path when importing reference HOT 2
- Execlude subcollections export HOT 3
- Firestore Auto generated IDs HOT 2
- No connection established HOT 1
- Bad parsing of arrays of DocumentReferences
- Account credentials file does not exist HOT 1
- Restoring with nested ref is not working HOT 1
- Logging when backup and restore HOT 4
- Backups() Extremely Slow HOT 3
- [Question] Does exporting data cost reads in firestore with Spark plan? HOT 3
- GoogleError, Timeout in version 1.0.0 HOT 21
- Certain Collections Return Empty Object HOT 7
- Invalid code example in README
- npm i firestore-export-import not working on mac HOT 2
- Restore a bit slow? HOT 2
- Timestamp field fails to import nanoseconds HOT 3
- Build and deployment failed due to an error. HOT 10
- Unable to get subCollection data if setting queryCollection in export options HOT 1
- Only [DEFAULT] firebase app is recognized HOT 1
- Re-parent a collection and all its sub collections HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firestore-backup-restore.