Reputation: 181
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?
Upvotes: 17
Views: 7512
Reputation: 93
I was looking for cloud backup methods, but Google cloud storage provides soft delete (protection) feature. The max-soft-delete policy is 90 days. https://cloud.google.com/storage/docs/soft-delete
Upvotes: 0
Reputation: 19
I knew that there already have a correct answer 3 years ago by using gsutil
in Google Cloud SDK. Here below i just want to add another way to manually download Firebase's Storage, from Google Cloud Storage's Buckets, which are:
But, it DOESNOT allow multiple files / folders download. It just help you to download single file at a time.
Steps
Extra: Google can help you the gsutil
command-line to download multiple files and folders at a time. You could try it by select files & folders, and click "Download" text-action on top of the table.
Upvotes: 1
Reputation: 2155
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.
Upvotes: 43