[CentOS] rsync
Filipe Brandenburger
filbranden at gmail.com
Sat Mar 8 01:20:58 UTC 2008
On Fri, Mar 7, 2008 at 4:26 PM, Marcelo Roccasalva
<marcelo-centos at 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...
Filipe
More information about the CentOS
mailing list