Giter VIP home page Giter VIP logo

Comments (14)

dalenguyen avatar dalenguyen commented on May 31, 2024 1

Hi @derd, please try again in v0.2.3

from firestore-backup-restore.

derd avatar derd commented on May 31, 2024

i give buffer string its return

status: false,
message: 'ENOENT: no such file or directory,

from firestore-backup-restore.

dalenguyen avatar dalenguyen commented on May 31, 2024

Hi @derd, what is the code that you are using to restore? And how do you organize your data?

from firestore-backup-restore.

derd avatar derd commented on May 31, 2024

Hi @derd, what is the code that you are using to restore? And how do you organize your data?

here is the code.

Annotation 2019-06-22 172039

data i want to restore.

Anqweqwe

here is the function log.

34234

please help me out.

from firestore-backup-restore.

dalenguyen avatar dalenguyen commented on May 31, 2024

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.

derd avatar derd commented on May 31, 2024

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.

dalenguyen avatar dalenguyen commented on May 31, 2024

Hi @derd, check the path of your JSON file. You can use an absolute path if you want.

from firestore-backup-restore.

derd avatar derd commented on May 31, 2024

@dalenguyen thanks for help out but , sorry file is location no problem with that.. i have double check...

from firestore-backup-restore.

derd avatar derd commented on May 31, 2024

anything i missed out @dalenguyen, so i correct my self.

from firestore-backup-restore.

dalenguyen avatar dalenguyen commented on May 31, 2024

@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.

derd avatar derd commented on May 31, 2024

@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.

dalenguyen avatar dalenguyen commented on May 31, 2024

@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.

derd avatar derd commented on May 31, 2024

@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.

derd avatar derd commented on May 31, 2024

Thank you for your fast support @dalenguyen thanks..

from firestore-backup-restore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.