Question Long term storage on HDD

pcm81

Senior member
Mar 11, 2011
584
9
81
I have a raid 6 NAS and 3 16 TB drives in my computer. Let's call the drives Data1, Data1-BACK-UP and Data1-back-up. So basically 3 back-ups of Data1, counting the NAS.
Some files do not get accessed on these drives for years. Most of the time when i synch to the back-up i just use file name + date for matching and update. Once in a while i do full compare. The problem is: 99.9% of my file operations are read, not write so i am starting to worry about bit rot and bad sectors creeping into the files that do not get regularly updated (written to).

One option i am considering is to reformat my back-up drive and rewrite all data to it to essentially update its magnetic fields on all bits. Is there a better way to check/update file integrity on linux? Since i have 4 copies of data a program that checks all 4 and overwrites 1, completely updating all data, with data that 2 of remaining 3 agree on would be ideal. Is there something like that? The 3 drives in my machine are 2x ext4 and 1x fuse (not sure how i ended up with this fs) file systems the NAS is raid-6.
 

Tech Junky

Diamond Member
Jan 27, 2022
3,721
1,282
106
Rsync can did that in a cron job.
Just setup a separate cron for each destination and configure the options as wanted. I have one set to backup my primary to a secondary every 6 hours with flags for diff only. I also use the exclude folders option for stuff that's not important for recovery. I have a second cron set to my storage drive as well.
 

mikeymikec

Lifer
May 19, 2011
18,627
11,341
136
btrfs - a customer of mine who gave me their old NAS drives had them set up as btrfs and the guy isn't particularly techie, I assume they simply accepted the defaults that their NAS wanted to use... it seems unlikely that a commercial product would use a pre-release filesystem, no?
 

manly

Lifer
Jan 25, 2000
11,859
2,809
136
Synology DSM offers btrfs, but they expressly avoid its "RAID" features.


I like reading Jim Salter's *nix coverage; here's his 2021 update:

 

pcm81

Senior member
Mar 11, 2011
584
9
81
I looked up Rsync, it looks like it is a back-up tool similar to FreeFileSync that i use now. Can it actually refresh source file which is different on content level from 2 other sources that are in agreement?
 

Tech Junky

Diamond Member
Jan 27, 2022
3,721
1,282
106
Depends on the flags you use for the diff calculation. Also, if you string together commands to be run concurantly when triggered. It can look for the time as an option, size, etc.

After the first sync it handles updates fairly quickly. For the 3rd backup you could have a format trigger and then on the next line say 5m later have it trigger the full backup for the bit rot potential.

It's been awhile since I've looked at the options but, there might even be a metadata check flag you could use. It can be as simple or complicated as you desire.
 

manly

Lifer
Jan 25, 2000
11,859
2,809
136
If you're concerned about bitrot, how would you know an original file didn't have a bit flipped unless you're running ZFS?

rsync is a fabulous tool, but it isn't for everybody. I don't use it, but I've read good things about restic as a powerful backup solution.

Beats reinventing the wheel/rolling your own solution.
 

pcm81

Senior member
Mar 11, 2011
584
9
81
If you're concerned about bitrot, how would you know an original file didn't have a bit flipped unless you're running ZFS?

I have 4 copies of the data, the thought is if i have bitrot in the one being updated and even in one of the 3 copies the 2 other copies will correct the drive being updated.
 

bigboxes

Lifer
Apr 6, 2002
40,353
12,229
146
I have a raid 6 NAS and 3 16 TB drives in my computer. Let's call the drives Data1, Data1-BACK-UP and Data1-back-up. So basically 3 back-ups of Data1, counting the NAS.
Some files do not get accessed on these drives for years. Most of the time when i synch to the back-up i just use file name + date for matching and update. Once in a while i do full compare. The problem is: 99.9% of my file operations are read, not write so i am starting to worry about bit rot and bad sectors creeping into the files that do not get regularly updated (written to).

One option i am considering is to reformat my back-up drive and rewrite all data to it to essentially update its magnetic fields on all bits. Is there a better way to check/update file integrity on linux? Since i have 4 copies of data a program that checks all 4 and overwrites 1, completely updating all data, with data that 2 of remaining 3 agree on would be ideal. Is there something like that? The 3 drives in my machine are 2x ext4 and 1x fuse (not sure how i ended up with this fs) file systems the NAS is raid-6.
My understanding is that data is fairly safe on HDDs for about 10 years before bit rot/corruption might become an issue. Your NAS is NOT backup. It's your data. I'm not sure how many backups you have. You want one set of your backup as cold storage (i.e. not powered on) and a third set of your data offsitte (to mitigate flooding/fire/theft/physical damage.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |