Export firebase

16,391

Solution 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

Solution 2

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

Share:
16,391
Alex Loiz
Author by

Alex Loiz

Connecting the dots!

Updated on August 06, 2022

Comments

  • Alex Loiz
    Alex Loiz almost 2 years

    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

  • Alex Loiz
    Alex Loiz over 11 years
    Hey Andrew, thanks for the quick reply. I had thought of those solutions but was wondering if I was missing something, maybe some firebase export webhook or another option that would make the process cleaner! Anyway I didn't find anything else so I guess the solution is as you described it! Cheers!
  • Jake
    Jake about 10 years
    I'm curious about the same thing as Alex, but from a back-ups perspective. Is there a way to get access to the backups Firebase itself creates on a normal basis? (Heroku does this as part of their Postgres offering, which I've found quite nice.)
  • sunil
    sunil over 7 years
    how we can do with jquery and from where we get access_token
  • Nico Van Belle
    Nico Van Belle over 6 years
    Your answer adds no value to the answer given almost 5 years ago: poll the REST API on a regular basis
  • wdfc
    wdfc over 6 years
    How do you do this if the data is too large?