Fast DB Branching With BTRFS Subvolumes as Docker Volumes

I encounter a “rather” PITA problem that I’ve had for years: How do I load production DB into a test/integration/you-name-it environment without waiting half a day for it. Ok maybe you have a nice set of fixtures for your app, which eliminiates this need. Still, this need is pretty common. I previsouly stumbled upon this doc of BTRFS/ZFS as a driver for docker storage. And then I remembered this filesystems had CoW1 and snapshot capabilities. ...

May 8, 2025 · 2 min · 373 words · Rémi Desgrange