Firebase Storage - Project migration options?

693 views
Skip to first unread message

Taylor Keenan

unread,
Sep 21, 2016, 11:30:07 AM9/21/16
to Firebase Google Group
I am trying to implement dev & prod instances of Firebase.  Is there any way to migrate Firebase Storage from one project to another? (i.e. The realtime database has export/import options)  Any help would be greatly appreciated.  Thanks!

Mike Mcdonald

unread,
Sep 21, 2016, 11:56:44 AM9/21/16
to Firebase Google Group
Since all your files are stored in a Google Cloud Storage bucket, all you need to do is migrate those files from one bucket to the other. GCS has provided a few ways of doing this:
  • gsutil command line tool, the cp or mv commands
    • gsutil mv-m -r gs://old_bucket/* gs://new_bucket
  • GCS Transfer Service, which will automatically perform this migration from one GCS bucket to another. You can even schedule periodic transfers if users are still using the old bucket.
Thanks,
--Mike

Taylor Keenan

unread,
Sep 21, 2016, 2:06:55 PM9/21/16
to Firebase Google Group
That's exactly what I was looking for, thanks Mike! I actually didn't think to look into the GCS documentation - seems kind of obvious now. :)

Mike Mcdonald

unread,
Sep 22, 2016, 11:26:08 AM9/22/16
to Firebase Google Group
We're working on publishing a "Integrating Firebase Storage with Google Cloud Platform" section of the docs, which will detail our relationship, since we know it's not an obvious first look :)

Thanks,
--Mike
Reply all
Reply to author
Forward
0 new messages