# Bit Rot Prevention Scheme

**URL:** https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276
**Category:** Feature
**Created:** [July 6, 2020, 11:31am UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276 "2020-07-06T11:31:55Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Nummer378](https://forum.syncthing.net/user_avatar/forum.syncthing.net/nummer378/32/5958_2.png) [@Nummer378](https://forum.syncthing.net/u/Nummer378)
#### Post date: [December 20, 2024, 11:33am UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276/21 "2024-12-20T11:33:44Z")

</div>

> [@xor-gate](#):
>
> TIP: Don’t forget to add the `.zfs` folder to `.stignore` or else when using snapshots they also get propagated to connected peers.

While this probably doesn’t hurt, it should normally not be necessary as ZFS doesn’t return this virtual folder in a readdir-style system call, so syncthing won’t pick it up during a scan anyway.

(Unless `snapdir` is set to visible)

---

<div class="post-metadata">

### Author: ![xor-gate](https://forum.syncthing.net/user_avatar/forum.syncthing.net/xor-gate/32/2934_2.png) [@xor-gate](https://forum.syncthing.net/u/xor-gate)
#### Post date: [December 20, 2024, 1:13pm UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276/22 "2024-12-20T13:13:22Z")

</div>

Hmm I was unaware of visibility control, indeed snapdir is a parameter which can be controlled. Thanks for the tip! Learning every day.

---

<div class="post-metadata">

### Author: ![mopani](https://forum.syncthing.net/user_avatar/forum.syncthing.net/mopani/32/11026_2.png) [@mopani](https://forum.syncthing.net/u/mopani)
#### Post date: [January 2, 2025, 7:31pm UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276/23 "2025-01-02T19:31:33Z")

</div>

Good strategy overall.

I am personally uncomfortable with copies=2 on two drives. I’m less worried about on-disk loss than I am about full-disk loss.

My personal “minimum equipment list” is data on 3 disks:

If one disk dies, the second disk now contains your _ **only** _ copy of the data, and will now be subjected to a severe strain when re-silvering (or duplicating) the data to a replacement disk. _IF_ it is going to die, re-silvering is the most likely time for it to happen.

If you have a mirror with an off-line backup drive, you’re still in the same state with only one drive containing all your data: your second mirror drive dies while re-silvering, you fall back to your offline drive, and it dies. Highly unlikely, but I’m unwilling to make that my primary plan.

---

<div class="post-metadata">

### Author: ![xor-gate](https://forum.syncthing.net/user_avatar/forum.syncthing.net/xor-gate/32/2934_2.png) [@xor-gate](https://forum.syncthing.net/u/xor-gate)
#### Post date: [January 2, 2025, 7:48pm UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276/24 "2025-01-02T19:48:40Z")

</div>

Yeah you still need an extra backup. I do this on USB SSD/HDD once in a while.

---

<div class="post-metadata">

### Author: ![mopani](https://forum.syncthing.net/user_avatar/forum.syncthing.net/mopani/32/11026_2.png) [@mopani](https://forum.syncthing.net/u/mopani)
#### Post date: [January 2, 2025, 11:16pm UTC](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276/25 "2025-01-02T23:16:23Z")

</div>

FWIW: My minimum is always RAID-Z2 with \> 4 physical disks and a disaster-recovery drive in another physical location (in-laws house) that gets updated every month or so using `zrep` to send ZFS snapshots to the backup drive.

`zrep` rolls up intermediate snapshots from the host system so I have the complete filesystem history, and since ZFS knows what blocks have changed between snapshots it doesn’t need to “walk the tree” to copy the changes and backup updates happen pretty fast.

[Previous page](https://forum.syncthing.net/t/bit-rot-prevention-scheme/15276.md?page=1)
