Verifying Backups

Status
Not open for further replies.

the Melanie

Smack-Fu Master, in training
52
Since backups only work if they are accurate... I want to check my backups before I need them ;) .

Would doing a MD5 and SHA512 of each file be sufficent or overkill or underkill?

The files are a mix of text, programs, images, audio files, iso, etc. that are sized from less than 1KB to a couple which size from less than 1KB to almost 4 GB. A Bit-rot-resistant filesystem and/or raid is not currently an option.
 

WM314

Ars Tribunus Militum
1,885
Subscriptor
[url=http:/civis/viewtopic.php?p=29286801#p29286801:2kaix0lr said:
ssspencerjr[/url]":2kaix0lr]Best way, delete something of less importance and attempt to restore.

Er, I think the issue is not verifying that a backup works in principle, but that the data held in the backup exactly corresponds with the "canonical" live copy of the data before the live copy is lost. So you'd need to check everything file-by-file...

I don't see why hashing the files couldn't work in principle, but I'm unqualified to answer in detail. I did have a similar question a while back where one of the most promising suggestions was to append parity data to files (but I haven't gotten around to implementing it and can't tell if it's practical for large numbers of files).

Edit: http:/civis/viewtopic.php?f=11&t=1281755&start=0 - it somewhat derailed into a discussion on minimal useful ZFS NAS setups, but there's also the parity discussion throughout.
 

afidel

Ars Legatus Legionis
18,433
Subscriptor
If you don't have a reliable source why are you worried about a reliable target? Either way enterprise class tape drives already include lots of checksumming and at least in the case of LTO they actually read the data and the checksum with a separate read immediately after the data is written, in addition most backup programs have the option to check the data on tape against the source at the cost of more than doubling your tape-out time. If you want to compute hashes after files are written and lay them down next to the files you can, but about the only thing that can do is tell you the file is damaged, now what? Are you going to keep archival tapes, at what interval? Basically what are you trying to protect yourself from and why do you believe that tape is the best medium to accomplish that protection and what in current tape processes do you believe is insufficient to accomplish your goals?

*edit*
Broadly the industry is trying to fight the issue with T10-PI formerly known as T10-DIF, but it hasn't been extended to tape drives yet, Oracle uses an older standard (T10-DIV) on their proprietary 10000C+ tape drives, but since it uses a different algorithm it doesn't have the same end to end protection that T10-PI provides for primary storage.
 
Status
Not open for further replies.