Reputation: 19
I have an application on firebase, but I must have server backup on another server, in cloud hosting or VPS, Please help me
Upvotes: 1
Views: 216
Reputation: 6374
Both Firebase Realtime Database and Firestore offer backup capability to a GCS bucket.
Firebase Realtime Database:
For Firestore:
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.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.
Upvotes: 1