brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: parity brings back a dead disk, never a file you deleted

Parity
~/tips/tip-parity-not-a-backup

rsync -a /mnt/user/documents/ /mnt/disks/usbdrive/documents/

Explains why you still need a separate copy next to parity protection.

Parity feels like a safety net, and it is one for exactly one kind of accident: a drive that stops working.

Unraid updates parity in real time. Delete a folder, overwrite a spreadsheet or let ransomware encrypt a share, and parity faithfully follows along within the same write. A rebuild afterwards gives you the deleted state back, precisely as you left it.

So I treat parity as uptime protection and keep a second copy of anything I’d be upset to lose. A simple start is a one way copy to a drive or another machine that is not part of the array:

rsync -a /mnt/user/documents/ /mnt/disks/usbdrive/documents/

That path assumes a USB drive mounted by the Unassigned Devices plugin, so adjust it to yours. Because there is no --delete here, files you remove on the server stay on the copy, which is what you want after a mistake. It does overwrite older versions of changed files, so it is no history. A tool that keeps versions does that job better.

Decide what actually needs a copy. Downloaded media you can fetch again is a different thing from family photos, and backing up only the second group is often cheap enough that there is no excuse.

Whatever you choose, restore one file from it now and then. A backup nobody has ever read from is a hope, and parity can’t help you there either.

Further reading: Unraid docs: Data recovery, rsync man page

Going deeper: Get the most out of Unraid: the settings worth changing, from shares to backups

More Parity tips Main > Array Devices > Parity, Disk 1, Disk 2, … Main > Array Devices > Identification column Main > Maintenance mode > Start > Sync Main > Array Operations > Check cat /boot/config/parity-checks.log All Parity tips (14) All topics

Link