problem with option -n and empty directories

2003-01-29 Thread Marco Broglia
I have a problem using option -n (to test if a sync operation will be
done) and I add empty directory in the source tree.

If I make:

  # mkdir source/empty
  # rsync -n -v -a ... source/ dest

rsync does not notes empty dir, but if I remove -n option it synchronize
correctly also the empty dir.

Why ?

I think this is important because, as I do, a command like `rsync -n'
could be inserted in crontab, for example hourly, to check if the source
tree has to be updated.

Please answer directly to me at [EMAIL PROTECTED]

Thank you very much.
Marco.

-- 
% dott. Marco Broglia
% Nsa srl, viale Regina Margherita 81, I-20050 Macherio (MI)
% email: [EMAIL PROTECTED]
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



Re: problem with option -n and empty directories

2003-01-29 Thread Wayne Davison
On Wed, Jan 29, 2003 at 05:31:59PM +0100, Marco Broglia wrote:
 I have a problem using option -n (to test if a sync operation will be
 done)

Yeah, it's a known bug that -n doesn't mention everything that rsync
would output if -n wasn't specified.  I've also noticed that rsync
sometimes does things _without_ -n with no mention either -- for
instance, if it changes a file mode or an owner (but nothing else about
the file) it doesn't output anything.  This is something that we should
look into fixing.

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html