No SQL DB – Firestore #
For best practices, we recommend using the „Export and import data“ feature in the case of a data loss event. This can be done with either the Cloud Console or with gcloud.
This operation copies documents in your database and exports them into a Cloud Storage bucket. An export may include changes that were made while the operation was running.
Once exported, you can import documents back into your project.
In addition, you can export to BigQuery if you wish to do so. However, there are limitations listed here.
Using Firebase extension to backup new write/update events in Firestore collection in BigQuery
Thanks for the follow up. In cases of disaster or system failure, Firestore provides a highly available database depending on your chosen location.
Multi-Region locations can withstand the loss of entire regions and maintain availability without losing data.
Regional locations creates replications within multiple zones in that region.
Archiviert wird in Buckets. Name: dev-firebase-backups,: , , .
- Name: dev-firebase-backups
- Speicherort: Multi-Region EU
- Klasse: Standardklasse Archiv (sehr kalter Zugriff weniger als einmal im Jahr)
- Berechtigung Einheitlich auf Bucket-Ebene nicht auf Objekt Ebene
- Kein Zugriff aus dem Internet. Keine Extra-Schutzmaßnahme wie Objektversionsverwaltung oder Aufbewahrungsrichtlinie
Offen: Nach wie vielen Tage die Backups löschen?
Offen: Wie oft ein Backup? 1x am Tag
Automatischer Export mit Cloud Functions. https://firebase.google.com/docs/firestore/solutions/schedule-export?hl=de
Storage #
Use Google Data Transfer to create a copy of the current Bucket with Firebase Storage files.
Offen: Wie oft ein Backup? 1x am Tag, gleichzeitig mit der noSQL Sicherung.
Pricing #
https://cloud.google.com/storage/pricing?hl=de
Type: Archiv in Frankfurt (europe-west3) 0,0025 USD / Monat & GB. Bedeutet 2,5 USD / Monat für ein 1TB.
Backups beachten. 10 GB Storage über 90 Tage mit täglicher Sicherung bedeutet 900GB. Bei 100GB ergibt sich 9TB was 22,5 USD Kosten erzeugt. Die Kosten steigen mit zunehmenden Speicher. Man sollte 90Tage alte Sicherungen löschen.