April 17, 20242 yr I have two btrfs cache pools that are both single drives. One for unimportant stuff (mostly downloads and ISOs) and another for important stuff (like appdata, system, VMs). I am looking into ways to secure my important cache and what I assumed would be ideal would be to have some sort of snapshot to the array and/or cloud storage and then a checksum for bad files (bad blocks/bit rot?). From what I can tell the best way for bad files is to have a check sum using scrub but scrub only tells me there are errors and needs a back up somewhere. If I setup a snapshot, can I restore from there? Or is the only option to add a second drive to the pool and use RAID? I would prefer to only have to snapshot so that way I do not need to get an additional drive and use my existing storage but not sure if it is possible or more complicated. Can someone please point me in the write direction and/or provide advice on; 1) what is the best way to setup checksums? 2) what options do I have for snapshotting? Ideally I would want some sort of weekly local snapshot, monthly off-site snapshot and weekly checksums (scrubs?) to semi-automatically recover (ie I don't want to be manually copying and pasting from some zip file somewhere if there is an error)
April 17, 20242 yr Community Expert 27 minutes ago, AngryPig said: 1) what is the best way to setup checksums? They are already enabled if you are suing btrfs, assuming COW is set to auto for that share. 27 minutes ago, AngryPig said: 2) what options do I have for snapshotting? You can use the snapshots plugin or use a script.
April 17, 20242 yr Author 57 minutes ago, JorgeB said: They are already enabled if you are suing btrfs, assuming COW is set to auto for that share. Yep, COW is on so if I enable scrub then that should have me sorted for checksums? How would I restore from a snapshot/raid if the checksums show an error? 57 minutes ago, JorgeB said: You can use the snapshots plugin or use a script. I saw the Snapshots plugin but it says beta and added 2021 so I wasn't sure if it is still relevant/maintained?
April 17, 20242 yr Community Expert Solution 26 minutes ago, AngryPig said: Yep, COW is on so if I enable scrub then that should have me sorted for checksums? Yes. 26 minutes ago, AngryPig said: How would I restore from a snapshot/raid if the checksums show an error? Copy the file replacing the existing one. 26 minutes ago, AngryPig said: so I wasn't sure if it is still relevant/maintained? It is.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.