You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the last five years we've been backing up the postgres database to Google Cloud Storage daily. Each backup is 30GB, and the total cost was creeping up.
After discussion I've cleared out all backups except those taken on the first of the month:
import re
from google.cloud.storage import Client
c = Client("ebmdatalab")
for b in c.list_blobs("ebmdatalab_db_backups", prefix="prescribing"):
if re.search("_01\.sql\.gz$", b.name):
continue
print(b.name)
b.delete()
We should run a job to do this regularly.
The text was updated successfully, but these errors were encountered:
For the last five years we've been backing up the postgres database to Google Cloud Storage daily. Each backup is 30GB, and the total cost was creeping up.
After discussion I've cleared out all backups except those taken on the first of the month:
We should run a job to do this regularly.
The text was updated successfully, but these errors were encountered: