News for hackers. Stuff that matters.
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by halukakin on Saturday October 15, 2022 @11:02AM (#33215434)
Could someone provide link(s) on how regular snapshots of databases can be taken like this? (Googling didn't help much, maybe I'm googling for the wrong keywords.) For me, backing up the database is a few-hour-long process. Restoring it for a developer again is a few hours process. I read about snapshots before but haven't realized they could be this effective.
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by rrdharan on Saturday October 15, 2022 @11:40AM (#33215753)
It’s the lack of clarity on how they manage access control for what should be regulated data that surprises me, more than the technology achievement.
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by StayTrue on Saturday October 15, 2022 @08:07PM (#33219846)
Article says data is anonymized before dev use. Pretty standard practice.
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by ClumsyPilot on Saturday October 15, 2022 @11:20AM (#33215591)
can't most COW dilesystems like BTRFS or ZFS take a snapshot at a point in time instantly?
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by abdulocracy on Saturday October 15, 2022 @11:39AM (#33215750)
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by nick__m on Saturday October 15, 2022 @11:44AM (#33215793)
for mariadb :

0) make sure the the database data volume is on lvm or zfs

in a sql prompt:

  1) BACKUP STAGE START; BACKUP STAGE BLOCK_COMMIT;
  2) \! the shell command to take the snapshot
  3) BACKUP STAGE END;
you can now mount your snapshot, copy it offsite and delete it. The restore procedure is left as an exercise!
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by halukakin on Saturday October 15, 2022 @01:45PM (#33216909)
Very helpful. Thank you!
Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by mauvehaus on Saturday October 15, 2022 @12:36PM (#33216232)
Because it isn't a backup. They put the database into a quiescent state on disk, take a file system snapshot, let the dbms resume working, and send the snapshot data via rsync.

This requires the cooperation of the dbms software to get the on-disk data quiesced. Then your snapshot has to go fast enough that the dbms doesn't end up with too many spinning plates before you let it start writing normally.

Re:A 24-year-old bug in the Linux Kernel TCP stack (2021) by halukakin on Saturday October 15, 2022 @01:44PM (#33216902)
Got it. Thank you!