Jump to content

Hi everyone, have a question about backing up data. I'm worried about corruption of files when I copy files to an external drive and then restore them back to my new drives. I'm thinking I should hash the files and make two copies of them to two external drives then copy them back while checking that the signatures are unchanged. Any comments about this?

Link to comment
https://linustechtips.com/topic/1435905-data-backup-and-restore-corruption/
Share on other sites

Link to post
Share on other sites

There are tools that allow you to verify the copy was successful by e.g. checking a hash after the file has transferred. I'd take a look at those if you want to be sure the files got transferred correctly. Additionally if you are really paranoid you could also store the hash itself somewhere and periodically check the hash of the file against that reference. I think there are also filesystems, like ZFS IIRC, that have means of helping you protect against corruption (but maybe ZFS is not that suitable for cold storage? I haven't used it personally).

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to post
Share on other sites

I have my main storage that gets backed up to 2 external drives. That's done using FreeFileSync in normal fast date/time/size comparison mode.

But about twice a year I'll run it in "compare file contents" mode to see if any discrepancy has crept up. That's not happened yet.

 

So after you've copied everything you could do such a file content compare before wiping the original drive, then one again against the 2nd backup once you've copied things back...

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×