On 3/2/25 2:23 PM, Anssi Saari wrote:
So you actually back up the hibernated / partition? Is that really a
sound backup strategy?

It is effectively like yanking the power cord and then taking a backup. (Effects of the voltage dropping on the storage controller/disk are another matter, but in that regard hibernation is *safer* than yanking the power.) Assuming the filesystem can recover from a power cut, it can recover from this situation as well.

Indeed, I use this approach to backup production databases. Databases are, in many ways, like filesystems of their own, and any database with some kind of a journal can be backed up this way provided you have a way to create an atomic snapshot of the filesystem (LVM snapshots, btrfs snapshots, etc.).

Anything that semantically looks identical to "the machine suddenly powered off" is safe provided the data structure being backed up is designed to recover from that scenario. ext4 with a journal certainly qualifies.

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

If you correspond with me on a regular basis, please read this document: http://www.chrishowie.com/email-preferences/

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5

------------------------------------------------------------------------
                    IMPORTANT INFORMATION/DISCLAIMER

This document should be read only by those persons to whom it is addressed. If you have received this message it was obviously addressed to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses or to ANY mailing lists to which I am subscribed, whether intentionally or accidentally, you are agreeing that I am "the intended recipient," and that I may do whatever I wish with the contents of any message received from you, unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may be included on your message.

Reply via email to