You can enable Firebase Realtime DB to be automatically backed up daily.
Do they charge when downloading data to backup? Or do they charge when we download a backup file (.zip file).
The backups of the Firebase Realtime Database are written to a Google Cloud Storage bucket. There is no bandwidth charge for the writing of the backups to the bucket.
You will be charged for the storage space the backups occupy, and for downloading the backups from the bucket. Both are charged as a normal GCS operations.
Also see the cost section of the documentation for the backup feature:
The backups feature can be enabled for Blaze projects for no additional cost. However, you will be charged at the standard rates for the backup files placed in your Google Cloud Storage bucket. You can enable Gzip Compression and Storage 30 day Lifecycle to reduce your storage costs.
Related
I'm confused. I am storing files of users for limited time (like stories and status), and now my Firebase Storage is full of old files that are useless files. If I delete these old files from Firebase Storage, what will be the impact on my billing?
The Firebase pricing page shows that you pay $0.026/GB per month for storage space occupied on Cloud Storage.
So once you delete files, you pay as much less as the amount of data you deleted.
Firebase Storage is using 490 MB, but no bucket has been initialized.
I am not able to track where this storage com from, but it is quite strange to check that Firebase is charging 0.10 USD for an empty Storage.
Where can I delete this storage and why firebase is charging for having no buckets?
Currently I am using Firebase Authentication, Firestore, Realtime Database, Hosting and Functions.
Every time you deploy to Cloud Functions, it takes some space in a new storage bucket. This is covered in the documentation FAQ about Cloud Functions billing for node 10.
You can delete those files over time if you want.
My recommendation is to use object lifecycles in the artifacts storage bucket! that way the files deletion is automated.
Follow this documentation:
https://cloud.google.com/storage/docs/lifecycle
(Firebase should be the one responsible for creating this rule!)
I have an application on firebase, but I must have server backup on another server, in cloud hosting or VPS, Please help me
Both Firebase Realtime Database and Firestore offer backup capability to a GCS bucket.
Firebase Realtime Database:
Use the "Backups" tab on the console and use the wizard to configure the backup. There's more about how to restore and how files are named here. There is no additional cost for the backup operation, but you are obviously charged for the storage of the backups in GCS.
For Firestore:
You can use the gcloud firestore export gs://[BUCKET_NAME] command to export to a GCS bucket, either the entire database or just one collection. Full documentation about restores, partial exports, etc, is here. Note you are charged for document reads to do the backup in addition to the GCS storage costs.
There does not appear to be a built-in way to automate this but the Admin SDK includes a FirestoreAdminClient.exportDocuments (that link is for Node) call you could presumably use to call from a scheduled cloud function to do the work.
You must be on the Blaze (pay as you go) plan for both databases.
I have an application where thousands of small files are stored in Google Cloud Storage, and I have a million small records of metadata in Firebase Realtime Database.
When I switch database to Cloud Firestore beta in the Firebase Console, it warns me that the Cloud Storage will be disabled:
"Enabling Cloud Firestore Beta will preclude you from using Cloud Datastore with this project, notably from the associated App Engine app."
So I would have to move the files to Cloud Firestore? I don't see any examples from Google on storing files in Cloud Firestore? Should they then be stored as Base64 string or what?
Cloud Storage != Cloud Datastore
Cloud Datastore is a NoSQL database that has been around for quite a while and is very similar to Firestore in many regards. The reason for them not being available in parallel might be that they are actually using the same backend in some way.
Cloud Storage is for storing arbitrary files and isn't affected by you using Firestore at all.
I upgraded to the 'Flame' subscription for $25 a month since it supports Daily private backups.
Daily backups are supposed to be uploaded to Google Cloud Storage Or Amazon S3.
What are daily private backups? Do you offer hourly backups?
Private backups is an advanced feature for customers on our paid plans, that backs up your Firebase Realtime Database data once a day and uploads it to Google Cloud Storage or Amazon S3 buckets.
We do not offer hourly backups.
But I cannot find in the documentation on how to configure this feature. I checked every page in the Firebase Console but the feature is nowhere to be seen. Am I missing something?
To enable private backups you have to contact the Firebase support team through their support channel, they will assist you setting up daily private backup into Amazon S3 bucket or Google Cloud Storage.