logoalt Hacker News

bazzargh12/09/20242 repliesview on HN

A fun one like that, a few years back we had some code using dynamodb that used the automatic point-in-time backups. I asked if it had been tested, need you guess the reply?

Of course it turns out that the restore can only happen to a _new database name_ not the original, and the code had in multiple places hardcoded the assumption of what the db was called.

So restoring also involved patching the code and rolling that out; you can't "roll back" because to roll back the db the code must roll forward.


Replies

jamesfinlayson12/10/2024

Ugh, very annoying limitation. I've written scripts to create dummy tables, restore backups and sync across to existing tables twice now.

banku_brougham12/10/2024

'Roll-middle-out'