Backing up Source Files: Does a hosted Firebase site behave as a full project repository?

164 views
Skip to first unread message

tamin...@gmail.com

unread,
Jan 20, 2015, 5:34:10 PM1/20/15
to fireba...@googlegroups.com
Firebase Newbie here :)

What I mean is: Are all of my project files deployed to the Firebase server?  If so, is there a way to retrieve/clone my Firebase repository in the event that my local files are lost (i.e. computer is stolen)?

If not, is my Firebase project compatible with git?

Thanks!

Jacob Wenger

unread,
Jan 20, 2015, 6:06:30 PM1/20/15
to fireba...@googlegroups.com
Hey there,

I'm going to assume you are referring to our Firebase Hosting product. When you do a Firebase deploy, we do send all of your project files (except those which you tell us to ignore in your firebase.json file) and store them. However, we do not provide a service for retrieving/cloning old versions of your site. We do allow you to roll back to a previous version, but we won't actually send you the file list. You should use git or Mercurial to store those files yourself, instead of relying on us to do that.

If you are not referring to Firebase Hosting and instead are referring to Firebase data itself, you can export your data either via the REST API or from your Firebase dashboard.

Jacob

--
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/cb4325c5-b1ec-4c04-82af-d0ed542bfe97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Raynor

unread,
Jan 20, 2015, 6:13:38 PM1/20/15
to fireba...@googlegroups.com
One minor addition to what Jacob said is that Firebase Tools only sends the project files within the public directory you specify in the firebase.json file - or with the 'firebase init' command. By default, the tools also ignore files starting with a '.' (dot) - so it's compatible with git in that it won't send your .git folder to be hosted on your production site (unless you specifically change the settings)

Chris
Reply all
Reply to author
Forward
0 new messages