How to rsync PULL multiple files/dirs

Jonathan Chen -X (jonachen - The Armada Group, Inc. at Cisco) jonachen at cisco.com
Fri Jan 27 00:59:04 GMT 2006


Hi all,

I am wondering how do I pull data from a remote host without running a
daemon.

PUSH command

I would like the below statement be turned into a PULL from remote host
instead.

/usr/bin/rsync -e ssh --archive --sparse --compress --update --verbose
--stats --progress  --exclude=cdersync.tar.gz --exclude=*.bz2
--exclude=*.jpg --exclude=*.mp3 --exclude=ZDE --exclude=*.rpm
--exclude=*.sit  /users/jona/cde /users/jona/Desktop
/users/jona/.bashrc /users/jona/.profile cdeprd:/users/jona/

I thought of something like this...

/usr/bin/rsync -e ssh --archive --sparse --compress --update --verbose
--stats --progress --dry-run   --exclude=cdersync.tar.gz --exclude=*.bz2
--exclude=*.jpg --exclude=*.mp3 --exclude=ZDE --exclude=*.rpm
--exclude=*.sit --include=/users/jona/cde --include=/users/jona/Desktop
--include=/users/jona/.bashrc --include=/users/jona/.profile
jona at cdeprd: /users/jona


But that does not work the way I would like it to work.

Thanks!

-Jonathan


More information about the rsync mailing list