Hi,
Whenever i sync certain files in ( like /etc/tnsnames.ora ) from our
hostA to hostB, rsync always print out
/etc/
it prints out the files modified.
it does that for every directory name in the path of files i update...
Is there a way to suppress that output, since it is not modifying that
directory ?
Thanks
Daniel Bourque
Unix Systems Administrator
BTS Platform Services
Learjet Inc.
"E-mail disclaimer:
This message contains information,
which is intended for the sole use of
the recipient or authorized
representative. Any person who
receives this e-mail by mistake shall
immediately notify the sender and
destroy it. E-mail transmissions
cannot be guaranteed to be error-free
as information could be intercepted,
altered, or contain viruses. The
sender therefore does not accept any
liability for damages caused by the
fraudulent alteration of this message
including, without limitations,
damages caused by any virus
transmitted by it."
On Wed, Aug 11, 2004 at 10:40:51AM -0500, Daniel.Bourque@learjet.com wrote:> Is there a way to suppress that output, since it is not modifying that > directory ?Ah, but it IS modifying the directory -- it is changing the timestamp to be identical with the source. There is no way to suppress this, but all such directory names end in a trailing slash, so you can filter them if you need to. ..wayne..
There is something interesting though, all directories in the path are
printed , even when files are not modified, here is a snippet of the actual
output
here the only file xfred/modified is tnsnames.ora...
++ EXECUTING: /opt/local/bin/rsync -avH
--exclude-from=/usr/local/etc/rsync.d/exclude.rs108 -b --backup-dir=/!BAK
hs7::root.rs / ++
receiving file list ... done
./
etc/
etc/dt/
etc/dt/app-defaults/
etc/dt/app-defaults/C/
etc/dt/appconfig/
etc/dt/appconfig/icons/
etc/dt/appconfig/icons/C/
etc/dt/appconfig/types/
etc/dt/appconfig/types/C/
etc/dt/appconfig/xt/
etc/dt/appconfig/xt/types/
etc/dt/appconfig/xt/types/C/
etc/dt/config/
etc/dt/config/C/
etc/dt/config/Xsession.d/
etc/mail/
etc/named.data/
etc/rc.learjet.d/
etc/security/
root/
var/
var/ifor/
var/yp/
etc/tnsnames.ora
backup_dir is /!BAK
wrote 105 bytes read 13645 bytes 27500.00 bytes/sec
total size is 340046 speedup is 24.73
Wayne Davison
<wayned@samba.org To:
Daniel.Bourque@learjet.com
> cc:
rsync@lists.samba.org
Subject: Re: possible
suppression for output ?
08/11/2004 10:59
AM
On Wed, Aug 11, 2004 at 10:40:51AM -0500, Daniel.Bourque@learjet.com
wrote:> Is there a way to suppress that output, since it is not modifying that
> directory ?
Ah, but it IS modifying the directory -- it is changing the timestamp to
be identical with the source. There is no way to suppress this, but all
such directory names end in a trailing slash, so you can filter them if
you need to.
..wayne..