🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #14998

Q: verify copy of directory tree?

#14998
From: Joerg Hau
Date: Sat, 13 Jan 2001 09:19
25 lines
1634 bytes
Hi,

I'm looking for a simple way to compare two complete diretory trees on
a file-by-file basis. I thought of using 'find' together with 'cmp',
something like

  cd dir1; find . -type f -exec cmp {} ../dir2/{} \; 

... the problem is that the file names used in {} contain at least
some residues of the paths (demo: 'find . -type f -exec echo {} \;' ),
so this does not work so easily ... did anybody work this out as an
(almost) one-line procedure??

Background is especially the verification of my backups, local & on
CD-ROM. 

Cheers,

-- Joerg


------------------------------------------------------------
joerg.hau(at)swissonline.ch * Lausanne, Switzerland
http://www.dplanet.ch/users/joerg.hau/
"All standard disclaimers apply".
Technical Details
Message-ID: <hi6p39.eo3.ln@celeron.localnet>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!newsfeed.wirehub.nl!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!dialup-41-193.dplanet.CH!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4b73,888602c4238fd7ad,start
X-Google-Attributes: gidf4b73,public
X-Google-ArrivalTime: 2001-01-13 01:22:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!newsfeed.wirehub.nl!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!dialup-41-193.dplanet.CH!not-for-mail
From: Joerg Hau <joerg.hau@swissonline.ch>
Newsgroups: ch.comp.os.linux
Subject: Q: verify copy of directory tree?
Date: Sat, 13 Jan 2001 10:19:13 +0100
Organization: I speak for myself
Lines: 25
Message-ID: <hi6p39.eo3.ln@celeron.localnet>
NNTP-Posting-Host: dialup-41-193.dplanet.ch (212.35.41.193)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 979377616 11766357 212.35.41.193 (16 [54693])
X-Newsreader: KNode 0.1.13