How to diff two directories?

Kevin Korb kmk at sanitarium.net
Wed May 6 15:56:51 UTC 2020


On 5/6/20 11:49 AM, Peng Yu wrote:
> On 5/5/20, Kevin Korb via rsync <rsync at lists.samba.org> wrote:
>> Rsync != diff.
> 
> What do you mean? I only need to know what files are not the same, but
> I don't need to know what the differences are with the files.

See diff -q

> 
>> However, if that command lists a file something is different about it.
>> add --itemize-changes to find out what.
> 
> I see this output. What does ">f.s........ 2.txt" mean? Thanks.

There is a whole section in the man page that explains what all of the
itemize output means.  This means the file size is different.

> 
> $ rsync -avun --delete --itemize-changes /tmp/tmp.GH6z0oN8rn/a/
> /tmp/tmp.GH6z0oN8rn/b
> sending incremental file list
>> f.s........ 2.txt
> 
> sent 73 bytes  received 19 bytes  184.00 bytes/sec
> total size is 4  speedup is 0.04 (DRY RUN)
> 
> 
> ==> /tmp/tmp.GH6z0oN8rn/a/1.txt <==
> 1
> 
> ==> /tmp/tmp.GH6z0oN8rn/a/2.txt <==
> 2
> 
> ==> /tmp/tmp.GH6z0oN8rn/b/1.txt <==
> 1
> 
> ==> /tmp/tmp.GH6z0oN8rn/b/2.txt <==
> 22
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			https://sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20200506/7a12a9ad/signature.sig>


More information about the rsync mailing list