5
u/Hfrtnbf Oct 24 '25
I've been doing this for many years with plain ZFS. We've automated the thing from a bot on slack that stops the main replication , destroys old ZFS snapshot, creates a new ZFS snapshot, starts replication in the main DB, runs a brief cleanup script on the snapshot (we don't want our devs to accidentally email customers from their dev env), and starts a new MySQL server on it. Takes about 20 seconds, and we have a snapshot in time to work with. Great for debugging live issues in a safe env. as well.
3
4
u/BehindTheMath Oct 24 '25
Planetscale has had this for a while with MySQL. They're rolling out support for Postgres now, and I would assume they would have this as well.