On Fri, Mar 7, 2008 at 11:20 PM, Filipe Brandenburger <filbranden@xxxxxxxxx> wrote: > On Fri, Mar 7, 2008 at 4:26 PM, Marcelo Roccasalva > <marcelo-centos@xxxxxxxxxxxxxxxxx> 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... -- Marcelo "¿No será acaso que ésta vida moderna está teniendo más de moderna que de vida?" (Mafalda) _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos