On Fri, Mar 7, 2008 at 11:20 PM, Filipe Brandenburger filbranden@gmail.com wrote:
On Fri, Mar 7, 2008 at 4:26 PM, Marcelo Roccasalva marcelo-centos@irrigacion.gov.ar wrote:
If you don't mind replicating empty subdirs:
rsync -va --include "*.avi" --include "*/" --exclude "*" $WORKING $WEB_SERVER
The option "--prune-empty-dirs" does the trick!
rsync -av --include '*.pdf' --include='*/' --exclude='*' --prune-empty-dirs "$WORKING" "$WEB_SERVER"
Note: I'm using rsync 3.0.0 from rpmforge repository, I don't know if it's available in rsync 2...
Yes! 2.6.9 at least...