Exporting data out of Firebase

3,215 views
Skip to first unread message

Brian Davis

unread,
Feb 3, 2016, 9:42:08 PM2/3/16
to Firebase Google Group
Greetings!  I'm looking at giving Firebase a try with my react-native iOS and Android apps.  I was going to give Parse a try, but that's obviously no longer an option.  One thing Parse had, at least from my research, was the ability to export data out it without having to develop an app for that purpose.  Does Firebase provide this functionality on the free option?  I know about the private backup option using the Bonfire and higher pricing models, but that's out of my price range at this point.  Any help would be greatly appreciated.  Thanks!

Brian

James Tamplin

unread,
Feb 3, 2016, 10:20:26 PM2/3/16
to Firebase Google Group
[Firebase Team Member here]

Hi Brian -

Welcome to the community! Great question. You can get data out of the Firebase Realtime Database in a few ways:
  • Via our UI - There's an export button in the App Dashboard that will download your data.
  • Via our Client SDKs - You can run our Node client or our Java client (link in the blue call out on this page) on your own sever and save data.
  • Via our REST API - If your data isn't too large, you can run a cron job on your own server to do a GET at the root of your Firebase (API docs).
  • Via our private backup service - As you noted, if you're on our Bonfire plan, we'll export your data nightly to your own S3 or GCS Bucket.
Cheers,

James

On Wed, Feb 3, 2016 at 6:28 PM, Brian Davis <brianda...@gmail.com> wrote:
Greetings!  I'm looking at giving Firebase a try with my react-native iOS and Android apps.  I was going to give Parse a try, but that's obviously no longer an option.  One thing Parse had, at least from my research, was the ability to export data out it without having to develop an app for that purpose.  Does Firebase provide this functionality on the free option?  I know about the private backup option using the Bonfire and higher pricing models, but that's out of my price range at this point.  Any help would be greatly appreciated.  Thanks!

Brian

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/89898b61-851e-447c-a5aa-a2f0e749b2da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Justin Noel

unread,
Feb 4, 2016, 5:27:52 PM2/4/16
to Firebase Google Group
You can also use the awesome Firebase command line and simply do:

firebase data:get / -f my-fire-base-name-here | jq "." > my-firebase-backup.json


The 
jq

part is completely optional but pretty prints your JSON.  It's a great tool for manipulating, parsing, traversing JSON from the prompt.

Frank van Puffelen

unread,
Feb 4, 2016, 11:55:39 PM2/4/16
to Firebase Google Group
Darn... I forgot all about those. The data: commands in the CLI are great indeed.

Thanks for the reminder Justin!

Brian Davis

unread,
Feb 7, 2016, 4:30:08 PM2/7/16
to Firebase Google Group
Thanks for the prompt replies all!  Great information that I will surely try.  Thanks again.

Brian
Reply all
Reply to author
Forward
0 new messages