Re: how to check if the restored and original are the same

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks everyone for the useful information.

regards
cheng
--- Bill Medland <billmedland@xxxxxxxxxxxxxxxx> wrote:

> On April 20, 2006 06:55 am, Miner, Jonathan W (CSC)
> (US SSA) 
> wrote:
> > Careful using md5sum... You're going to update all
> the access
> > times on all the files, if you do any storage
> management
> > stuff, you're suddenly going to see that all of
> your files
> > just got accessed.
> >
> > Having said that... here is a script that "should"
> do it:
> 
> Alternatively build the list of md5sums from the
> source directory 
> and then use md5sum -c --status to check it.  Then
> you can later 
> check the integrity of the backup even if the source
> no longer 
> exists.  (Actually what I do is I generate the
> md5sum list 
> before doing the copy, sitting it at the root of the
> tree).
> 
> >
> > src={your source directory}
> > cpy=(the copied directory}
> >
> > cd $src
> > find . -type f -print | while read f; do
> >   if [ `md5sum $src/$f $cpy/$f | cut -d' ' -f1 |
> uniq | wc -l`
> > == 2 ]; then echo "ERROR: $f differs"
> >   fi
> > done
> >
> >
> > -----Original Message-----
> > From:	redhat-list-bounces@xxxxxxxxxx on behalf of
> zhicheng
> > wang Sent:	Thu 04/20/2006 09:35 AM
> > To:	General Red Hat Linux discussion list
> > Cc:
> > Subject:	Re: how to check if the restored and
> original are the
> > same thanks. this was what i was thinking. but we
> have tera
> > bytes of data.
> >
> > even for testing, we need to test at least 200GB
> of
> > data. how do i do that using md5sum for millions
> of
> > files?
> >
> > cheng
> >
> > --- Harry Hoffman <hhoffman@xxxxxxxxxxxxxxxx>
> wrote:
> > > You're probably better doing a md5sum of all of
> the
> > > files and then
> > > diff'ing that.
> > >
> > > This will you'll know if a file's content has
> > > changed instead of just
> > > whether the file is in both places.
> > >
> > > Cheers,
> > > Harry
> > >
> > > Lunt, Nick wrote:
> > > >> -----Original Message-----
> > > >> From: zhicheng wang
> [mailto:wang_zc@xxxxxxxxxxx]
> > > >> Sent: 20 April 2006 13:57
> > > >> To: redhat-list@xxxxxxxxxx
> > > >> Subject: how to check if the restored and
> > >
> > > original are the same
> > >
> > > >> Dear all
> > > >>
> > > >> does anyone know how to verify if two
> directories
> > >
> > > are
> > >
> > > >> the same:
> > > >
> > > > Theres probably better methods but how about
> this
> > > >
> > > > ls -lR /dir1 > /tmp/dir1.out
> > > > ls -lR /dir2 > /tmp/dir2.out
> > > > diff /tmp/dir1.out /tmp/dir2.out
> > > >
> > > >
> > > > Wesleyan Administration Services Ltd
> registered
> > >
> > > number 5188850 and Wesleyan Unit Trust Managers
> Ltd
> > > registered number 2114859 ("WUTM Ltd") are
> wholly
> > > owned subsidiary companies of Wesleyan Assurance
> > > Society, whose registered number is ZC145. WUTM
> Ltd
> > > is a member of IMA. For ISA/PEP/Unit Trusts
> > > Administration Centre: PO Box 9033, Chelmsford,
> SM99
> > > 2WQ Telephone: 0870 601 6129 Wesleyan Assurance
> > > Society and WUTM Ltd are authorised and
> regulated by
> > > the Financial Services Authority. Head Office,
> > > Colmore Circus, Birmingham B4 6AR. Telephone:
> 0121
> > > 200 3003 Fax 0121 200 2971. Website:
> > > www.wesleyan.co.uk Telephone calls may be
> recorded
> > > for monitoring and training purposes.
> > >
> > > > CONFIDENTIALITY NOTICE
> > > >
> > > > This communication and the information it
> contains
> > >
> > > is intended for the person or organisation to
> whom
> > > it is addressed. Its contents are confidential
> and
> > > may be protected in law. Unauthorised use,
> copying
> > > or disclosure of any of it may be unlawful. If
> you
> > > are not the intended recipient, please contact
> us
> > > immediately.
> > >
> > > > The contents of any attachments in this e-mail
> may
> > >
> > > contain software viruses, which could damage
> your
> > > own computer system. While every reasonable
> > > precaution to minimise this risk has been taken,
> we
> > > cannot accept liability for any damage that you
> > > sustain as a result of software viruses. You
> should
> > > carry out your own virus checking procedure
> before
> > > opening any attachment.
> > >
> > > > Delivered using mail2.wesleyan.co.uk
> > >
> > > --
> > > Harry Hoffman
> > > Integrated Portable Solutions, LLC
> > > 877.846.5927 ext 1000
> > > http://www.ip-solutions.net/
> > >
> > > > --
> > >
> > > redhat-list mailing list
> > > unsubscribe
> >
> >
>
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> >
> > >
> https://www.redhat.com/mailman/listinfo/redhat-list
> >
> > Euro-China Medlink ltd
> > http://www.euro-china.co.uk
> >
> >
> >
> >
>
___________________________________________________________
> > 24 FIFA World Cup tickets to be won with Yahoo!
> Mail
> > http://uk.mail.yahoo.com
> 
> -- 
> Bill Medland
> mailto:billmedland@xxxxxxxxxxxxxxxx
> http://webhome.idirect.com/~kbmed
> 
> -- 
> redhat-list mailing list
> unsubscribe
>
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 


Euro-China Medlink ltd
http://www.euro-china.co.uk

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux