News for hackers. Stuff that matters.
Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by Waterluvian on Monday July 19, 2021 @06:24PM (#27887982)
I’m a novice and am dealing with data that isn’t too complicated, large, or important. My approach is to build restore directly into the normal workflow. I test my backups by using them each week.

A stack is spawned from a database backup and once it passes tests, replaces the previous one.

Not sure how smart this all is but my goal is to learn through application.

Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by TheDong on Monday July 19, 2021 @06:33PM (#27888052)
The main reason I think this normally isn't done is that it requires downtime to do safely most of the time.

In order to not lose data, you can't have any writes between the time when the backup was taken and the present, or you need code which reconciles additional state and adds it onto the backup before switching over.

Normally, backup restoration is done during a maintenance window where the site is disabled so no writes can happen, and then usually a window of writes are lost anyway (i.e. 'last X hours, since the backup was taken')

For your use-case, do you just have very few writes? Do you lose writes? Do you have some other clever strategy to deal with it?

Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by dragontamer on Monday July 19, 2021 @06:40PM (#27888112)
It should be noted that not everyone is a global company.

A typical bank / credit union may only serve one town. As such, it would be socially acceptable to designate 3am to 4am as a regular maintenance window where services are shutdown.

Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by Waterluvian on Monday July 19, 2021 @06:42PM (#27888123)
Good point. The 5 minutes of downtime is simply tolerated. My captive audience are dozens of humans and thousands of robots all willing to try again.
Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by mlac on Monday July 19, 2021 @07:10PM (#27888325)
Ticketmaster?
Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by innomatics on Monday July 19, 2021 @07:35PM (#27888506)
>A stack is spawned from a database backup and once it passes tests, replaces the previous one.

I like this approach, although risky if you mean you routinely replace the production db.

My preferred setup is to automate restores into a pre-prod environment, apply data masking and run tests there. It's not a replacement for full DR exercises, but at least it automates the backup verification process as part of your build system.

Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by dougpa on Tuesday July 20, 2021 @12:23AM (#27890044)
It puts you 95% of the way there while providing many side benefits. This is what my team is targeting. Prod deployments are 0-downtime, but all the other deployments are fresh.
Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by phone8675309 on Monday July 19, 2021 @07:37PM (#27888513)
> A stack is spawned from a database backup and once it passes tests, replaces the previous one.

The stack replaces the previous one or the backup replaces the previous one? While having a single backup is a good start, you might want to consider keeping several backups so you can restore from, say, a data entry error that you discover two months after it happens.

Re:Don’t Wanna Pay Ransom Gangs? Test Your Backups by Waterluvian on Monday July 19, 2021 @09:55PM (#27889340)
The new cloud stack replaces the old which is then decommissioned.

Database images are immutable and a history of them are kept.