SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-11-2008, 06:57 AM
Tom Newton
 
Posts: n/a
Default Re: verifying that unzipped directories are the same? (tar problems)

On 2008-02-07, idiotprogrammer <[email protected]> wrote:
> Hi, there, I am moving my website from one linux server to another.
>
> I have basically been gzipping the tar file, scp to the new site and
> there it is.
>
> But I'm having problems when untarring at the other end.
>
> I'm getting some error messages. They may be harmless, but I don't
> know.
>
> Here's my main problem. How can I compare a directory with about
> 20,000 files and subdirectories inside to make sure everything is
> basically there in the unzipped version?
>
> Is there an easy way to find out some stats on one directory. (number
> of files, directories, total size etc).
>
> I'm acting under the assumption that the main problem would be missing
> files or directories or that the unzip process stopped unzipping
> things when it reached the error message. So really what I need to
> find is how many files made it and the paths of those that didn't.
>
> the end of my screen messages for the tgz were for some media files.
> Any help would be appreciated.
>
> I can remove the last few media files and trying zipping/unzipping
> again. But the gzip file is already about 800 mb already. I don't want
> to keep doing this only to find out there are 100s of files giving
> problems.
>
> Robert Nagle
>
>
> teleread/StGregorysTestAudio.wav
> teleread/telepodSadi16August2005.wav
> teleread/valleygirl.wav
> teleread/BLOSSOM-JOHN 2.9.06.wma
> teleread/Juliet2.wma
> teleread/LCdavidpresentation.wma
>
> gzip: stdin: unexpected end of file
> tar: Unexpected EOF in archive
> tar: Unexpected EOF in archive
> tar: Error is not recoverable: exiting now
> [rjnagle@web27 27test]$ ls


Yow. Let's hope a tar expert shows up.

A simple test you could do would be to do
ls -Rla <origin top dir> > file1
ls-Rla <untarzipped version> > file2

Then

diff file1 file2 | less

Tom




--
calhobbit (at)
gmail [DOT] com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-11-2008, 06:57 AM
Tom Newton
 
Posts: n/a
Default Re: verifying that unzipped directories are the same? (tar problems)

On 2008-02-08, Tom Newton <[email protected]> wrote:
> On 2008-02-07, idiotprogrammer <[email protected]> wrote:
>
> Yow. Let's hope a tar expert shows up.
>
> A simple test you could do would be to do
> ls -Rla <origin top dir> > file1
> ls-Rla <untarzipped version> > file2
>
> Then
>
> diff file1 file2 | less
>


To make the output more readable, I'd add the -1 argument to ls.

Tom



--
calhobbit (at)
gmail [DOT] com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode
Hybrid Mode <a rel="nofollow" href="http://unixadmintalk.com/f8/