Re: rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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...

Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux