LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2013, 10:51 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
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
 
Old 09-04-2013, 11:09 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,220

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
rsync can do that for you
 
Old 09-04-2013, 11:41 AM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Would this be the expected command?

Code:
rsync -rdtvu --checksum --progress -e "ssh" user@server:/orignal/backups/ /original/location/
 
Old 09-04-2013, 11:47 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,220

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Confirming CONFIG_MEMORY_HOTPLUG = y on Ubuntu? linuxunix Linux - Newbie 1 06-02-2010 09:40 PM
confirming right action setting up hostname hamster Linux - Networking 18 01-03-2008 03:38 PM
confirming if dd comand is working dambert Linux - Newbie 11 02-01-2007 09:27 AM
Need comferting / confirming :( Slith(++1) Linux - Security 8 09-08-2005 08:29 AM
Confirming Debian Version dunkyb Linux - General 2 02-22-2003 09:33 AM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration