If a drive fails and does so in very specific ways (for HW reasons), then yes, the other HDD chugs away taking up the load. You would then replace the failed drive, re-activate mirroring and the replacement drive would shortly be identical to the surviving drive again.
But if you mistakenly delete half your files, then the mirrored drive would delete those files too. After all, that's what mirroring is supposed to do. If you need an old version of a file (say, an accounting database) from last month because you only discovered an error today, then without a backup, you are also out of luck. In my aforementioned scenario, you are hit by ransomware: a mirrored setup would just mirror the corruption. Both drives are now identically encrypted.
Here's what I suggest:I guess I'm having trouble differentiating a mirror from a snapshot from a true backup.
- Forget I ever mentioned "snapshots". That's just a high‑falutin concept that has no application to your needs. When you are ready to look into it, you will know what it is.
- Likewise, mirroring, whether through mdadm, LVM or ZFS is not what you need.
- Backups are essential. With your setup, a possible setup would be to use only one drive actively as your data storage. Use the second drive passively to duplicate the contents of the first drive, but only periodically at your instigation. That way, a mistake/menace in one drive does not automatically propagate to the other. This gives you basic redundancy without much trouble. But it's still not a backup.
- For your real backups, here is what's important: you need to define a hierarchy of your data. Not all data is of like importance. Here's mine in ascending order of importance:
- Operating system: Worthless data. It can always simply be reinstalled. Ubuntu takes me less than 30 minutes to install from beginning to end. I don't ever bother backing my OS up.
- Convenience data: This is stuff that I already have source media for—CDs, DVDs, BDs. It's a pain to rip these to HDD again, but so what? It's just a matter of putting in the time. I rely on my redundant disks to give me enough protection here to feel safe.
- Important data: Family photos, home videos, etc. If I lost this stuff, Mrs DuckHook would kill me or I would consider doing so myself. Purely personal value, but high value. Many are okay backing this stuff up on some sort of cloud storage. After all, they have high personal value but are of little worth to bad guys. If you are okay with the metadata floating around out there on the cloud, then paying for an outside storage basket gives excellent peace of mind. Depending on how much of this you've got, it could get pricey though.
- Critical data: This is stuff like personal letters, contact databases, accounting databases, e-mail databases, tax/financial records, medical records etc. Stuff that's deeply personal and can be used to attack your assets or steal identity. And if lost, would constitute a true hardship or disastrous loss of records. This stuff is volatile (changes daily/weekly), highly sensitive and extremely valuable. Thankfully, these files also tend to be small. Mine fit on a USB stick. These can therefore be backed up cheaply and easily.
There it is. A quick and dirty backup regime. There are so many variations on the above and there's no one‑size‑fits‑all solution. Each person's needs are different and each needs to spin their own solution. It takes work and it takes thought, but when disaster strikes, you will pat yourself on the back that you were prepared. There are at least a dozen backup apps available for Linux. All Ubuntu flavours come with a backup utility called Déjà-Dup. For instructions, please see: https://www.linux.com/learn/total-sy...ecall-deja-dup
I'm not recommending this package. It is simply the one that is prepackaged so involves the least work and research.
BTW, those USB sticks are so cheap that I do two at once and keep one set off site at, say, my kid's place. A bank safety deposit box also does nicely.
Good luck and Happy Ubuntu-ing!
DH
Bookmarks