by theanirudh · 2y ago · 0 comments
> we were taking Postgres base backups (to Google Cloud Storage)
Rule #1 of backups - do not host backups in the same location as the primary
The canonical strategy is the 3-2-1 rule: three copies, two different media, one offsite; but there are variations, so I'd consider this the minimum.
This is a distant second priority to ensuring any reliable backup.
The same principle can be applied to cloud hosted workloads.
More seriously, perhaps the "2 different media" means don't use, for instance, the same brand and/or model of hard drive for your multiple backups.
Force the attacker to restore to kinetic means to completely wipe out your data.
Oh man that is my nightmare. Nothing says "broken system" like having to circumvent the system to get something done.
If your payments fail for whatever reason google will happily kill your entire account after a few weeks with nothing other than a few email warnings (which obviously routinely get ignored)
There will likely be some recovery process after restoring / rollback as it is effectively an unclean shutdown but this is unlikely to be much slower than regular backup restoration.