The auto backup for the Firebase Blaze plan does backup the Firebase Real-Time DB. But I can't find how to backup the Firebase Storage database for the same project where I have daily backups of the RealTime DB. Anyone knows the how to backup Firebase Storage?
Cloud Storage for Firebase is a powerful, simple, and cost-effective object storage service built for Google scale. The Firebase SDKs for Cloud Storage add Google security to file uploads and downloads for your Firebase apps, regardless of network quality.
The new Firebase Storage is powered by Google Cloud Storage, giving it massive scalability and allowing stored files to be easily accessed by other projects running on Google Cloud Platform. Firebase now uses the same underlying account system as GCP, which means you can use any GCP product with your Firebase app.
Firebase Storage is a stand-alone solution for uploading user generated content like images and videos from an iOS and Android device, as well as the Web. In typical Firebase fashion, there's no server required. Firebase Storage is designed specifically for scale, security, and network resiliency.
There is no built-in method via Firebase. However, since Firebase uses Google Cloud Storage behind the scenes for Firebase Storage it's possible to use the gutils Tool.
python -V
gcloud init
. This will ask you to select your project and authenticate you. Since Firebase uses Google Cloud Platform behind the scenes your Firebase project should be available as a choice.cloud init
with. In the list of available permissions you need to select Firebase Rules System
from the Other
category.gs://<bucket_name>
gsutil -m cp -R gs://<bucket_name> .
-m
enables multithreading for faster downloads if you have many files.cp
is the copy command-R
is recursive. If enabled it will download all files and folders in the specified tree.This can be used to also make a copy(backup) to another Google Cloud Storage Bucket or AWS etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With