Firebase Storage is closely integrated with GCS, allowing access to many GCS features through Firebase Storage. A shared GCS bucket named <project-id>.appspot.com
can be accessed via both Firebase and Cloud consoles.
To enable object versioning on your bucket, you can use the gsutil tool by running this command:
gsutil versioning set on gs://<project-id>.appspot.com
However, it's worth noting that Firebase Storage clients are only able to retrieve the most recent version of an object. This intentional limitation is due to Firebase Storage focusing on simplifying mobile development, without prioritizing comprehensive object versioning. While user data backups and document differentials could benefit from object versioning, we're open to exploring new use cases.
We expect developers to enable object versioning primarily for preventing permanent deletions, as mentioned in our deletion documentation. Developers may opt to use tools like gsutil
or implement custom solutions for retrieving and restoring files as needed.
EDIT 10/1: With growing demand for these functionalities, our documentation now includes additional information on utilizing Google Cloud Platform features in our GCP Integration guide.