LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Confirming Copy Worked Ok and Correctly (https://www.linuxquestions.org/questions/linux-newbie-8/confirming-copy-worked-ok-and-correctly-4175475874/)

NotAComputerGuy 09-04-2013 10:51 AM

Confirming Copy Worked Ok and Correctly
 
Rather paranoid question here, but I'm moving my backup drive onto a larger disk and therefore need to verify that all my backups are correct after being copied. I'd like to md5sum every file or something to confirm they're correct, but with thousands of files it's just impossible.

My solution would be to .tar the backup and MD5sum the archive, but I don't have enough hard disk space to be able to do that.

Is there a way I can ask the computer to verify the copy is a true copy?

Thanks

pan64 09-04-2013 11:09 AM

rsync can do that for you

NotAComputerGuy 09-04-2013 11:41 AM

Would this be the expected command?

Code:

rsync -rdtvu --checksum --progress -e "ssh" user@server:/orignal/backups/ /original/location/

pan64 09-04-2013 11:47 AM

rsync automatically checks the result, it has its own checksum, you can try --dry-run to check what will the command try to do.


All times are GMT -5. The time now is 11:59 PM.