Re: How to diff two directories?

2020-05-06 Thread Kevin Korb via rsync
On 5/6/20 11:49 AM, Peng Yu wrote:
> On 5/5/20, Kevin Korb via rsync  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.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: How to diff two directories?

2020-05-06 Thread Peng Yu via rsync
On 5/5/20, Kevin Korb via rsync  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.

> 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.

$ 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


-- 
Regards,
Peng

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: How to diff two directories?

2020-05-05 Thread Kevin Korb via rsync
Rsync != diff.

However, if that command lists a file something is different about it.
add --itemize-changes to find out what.

On 5/5/20 8:47 PM, Peng Yu via rsync wrote:
> Hi,
> 
> I use this command. But it also shows the files that are the same. Is
> there an option that can be specified so that only the differences are
> printed? Thanks.
> 
> rsync -avun --delete src dir
> 

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



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


How to diff two directories?

2020-05-05 Thread Peng Yu via rsync
Hi,

I use this command. But it also shows the files that are the same. Is
there an option that can be specified so that only the differences are
printed? Thanks.

rsync -avun --delete src dir

-- 
Regards,
Peng

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html