problem with option -n and empty directories

Marco Broglia broglia at nsa.it
Thu Jan 30 03:31:59 EST 2003


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 broglia at nsa.it.

Thank you very much.
Marco.

-- 
% dott. Marco Broglia
% Nsa srl, viale Regina Margherita 81, I-20050 Macherio (MI)
% email: broglia at nsa.it


More information about the rsync mailing list