rsync watchers,
I've been using rsync version 3.1.1+, and do like the improved --stats
output: e.g.
Number of files: 2480403 (reg: 2034290, dir: 233487, link: 212174, special: 452)
Number of created files: 356 (reg: 6, dir: 3, link: 347)
Number of regular files transferred: 16
...
- thanks to the developers.
However, I want to be able to look at the --stats output and make a
decision about whether anything changed or not, and would rather not
have to turn on -i and count the entries.
Here's an example:
- setting up source and dest directories
- setting up a file in source
- rsyncing source to dest
- changing the permissions on the source file
- redoing rsync
- looking at the --stats output, and finding no clue in the --stats output
that anything changed, whereas the -i output shows a change.
(The files are local, so --whole-file is in effect).
======================================================================================
prompt> mkdir source dest
prompt> echo a > source/a
prompt> /usr/local/bin/rsync -a -i --stats source/ dest
.d..t...... ./
f+++++++++ a
Number of files: 2 (reg: 1, dir: 1)
Number of created files: 1 (reg: 1)
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 2 bytes
Total transferred file size: 2 bytes
Literal data: 2 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 122
Total bytes received: 38
sent 122 bytes received 38 bytes 320.00 bytes/sec
total size is 2 speedup is 0.01
prompt> chmod g+rw source/a
prompt> /usr/local/bin/rsync -a -i --stats source/ dest
.f...p..... a
Number of files: 2 (reg: 1, dir: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 2 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 77
Total bytes received: 19
sent 77 bytes received 19 bytes 192.00 bytes/sec
total size is 2 speedup is 0.02
prompt>
======================================================================================
Any clues please?
Regards
Rob.
Dr Robert C. Bell
HPC National Partnerships | Scientific Computing
CSIRO Information Management and Technology
T +61 3 9545 2368 (Docklands and Clayton)
T +61 3 9669 8102 (Docklands only)
Mob +61 428 108 333
robert.b...@csiro.au<mailto:robert.b...@csiro.au> | www.csiro.au
https://wiki.csiro.au/display/ASC/Scientific+Computing+Homepage
Street: CSIRO SC Level 11, 700 Collins Street, Docklands Vic 3008, Australia
Postal: CSIRO SC Level 11, GPO Box 1289, Melbourne Vic 3001, Australia
Street: CSIRO IM&T, Rivett Room RNW 2.03, Clayton Vic 3168, Australia
Postal: CSIRO IM&T, Private Bag 10, Clayton South Vic 3169, Australia
Parcels: CSIRO IM&T, Gate 3 Normanby Road, Clayton Vic 3168, Australia
PLEASE NOTE
The information contained in this email may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received
this email in error, please delete it immediately and notify the sender by
return email. Thank you. To the extent permitted by law, CSIRO does not
represent, warrant and/or guarantee that the integrity of this
communication has been maintained or that the communication is free of
errors, virus, interception or interference.
Please consider the environment before printing this email.
---------- Forwarded message ----------
Date: Wed, 18 Nov 2015 12:00:02 +0000
From: rsync-requ...@lists.samba.org
Reply-To: rsync@lists.samba.org
To: rsync@lists.samba.org
Subject: rsync Digest, Vol 155, Issue 4
Resent-From: <robert.b...@csiro.au>
Send rsync mailing list submissions to
rsync@lists.samba.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.samba.org/mailman/listinfo/rsync
or, via email, send a message with subject or body 'help' to
rsync-requ...@lists.samba.org
You can reach the person managing the list at
rsync-ow...@lists.samba.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rsync digest..."
--
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