Also the --dry-run option to rsync would tell you what differs.

I assume you are using rsync to sync the files anyway?


On Wed, January 16, 2008 12:14 pm, Nick Rout wrote:
> There is probably a better tool, but how about:
>
> ls -lR dir1 > tmpfile1
> ls -lR dir2 > tmpfile2
> diff tmpfile1 tmpfile2
>
> On Wed, January 16, 2008 12:05 pm, Roger Searle wrote:
>> Hi, I am looking for list recommendations on packages or methods for
>> recursively comparing the contents of a couple of folders, and listing
>> just the names of files and folders that are absent in one or the
>> other.  The purpose of this is as part of testing my backup routine,
>> where I restore the tar file somewhere, and want to see which files are
>> not in the restore.
>>
>> A command line option would probably be fine depending on level of
>> complexity.  I thought diff might have been just the thing, but it
>> examines the file content, which isn't what I'm interested in.  There
>> are a few recommendations for mc, however I'm not a fan (sorry Nick).
>>
>> Cheers,
>> Roger
>>
>>
>
>
> --
> Nick Rout
>
>


-- 
Nick Rout

Reply via email to