Export firebase

南笙酒味 提交于 2019-12-21 07:55:34

问题


I was wondering if it is possible to export firebase data (perhaps as a JSON object) in frequent "cycles". The main reason I'm asking this is because I would like to capture the data at specific points of time in order to perform a range of analytics upon them / identify specific patterns. I'm interested in any operations / methods that are part of the Firebase API - maybe some kind of web hook, or other workarounds that would enable me to do this!

Any suggestions would be greatly appreciated as I could not find anything on the web / docs (maybe I've over read it?).

Thanks, Alex


回答1:


Firebase has a full-featured REST API, so the simplest thing to do is just poll the REST API on a regular basis. REST API docs are here: https://www.firebase.com/docs/rest-api-quickstart.html

You can also get full access to your Firebase data using the Node.js client. This allows you to attach callbacks to your data and act on changes immediately when they occur from your own server: https://www.firebase.com/docs/nodejs-quickstart.html




回答2:


Firebase now provides private backup option. For more information checkout private backup for Firebase data.




回答3:


You can export firebase data in Json object, just make a curl request like below:

curl 'https://MyBase.firebaseio.com/MyPoint.json?auth=MyAuth&print=pretty'

in linux terminal and you get all your child structure



来源:https://stackoverflow.com/questions/15079436/export-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!