Recursive ssh

jw schultz jw at pegasys.ws
Tue May 6 22:59:20 EST 2003


On Tue, May 06, 2003 at 05:57:32AM -0700, Mac Swiss wrote:
> Hi jw,
> 
> What do I do with your answer? 
> I would like to have a solution from the community.
> manpages didn't bring me further before.
> 
> Again my question:
> 
> I want to copy files from a remote server
> to a local directory with ssh. I've some difficulties
> with that because on the Remoteserver I have a
> directory
> "/www/ftp" with a lot of subdirectories with each of
> them
> 4 other subdirectories. I want to sync only */data/*
> to
> the local machine without */images/* or */doc/* or
> */movies/* Any solution would be appreciated.
> 
> Here what I tried already:
> 
> rsync -azq --include='*/data/*' -e ssh
> hom_diu1 at hom-sw01:/www/ftp/ /tmp/rsync_test/
> 
> It copies as well the directories not like data.

You have not excluded them.  Pay attention to the section
entitled EXCLUDE PATTERNS and the examples there.

> 
> regards
> Mac  
> 
> Thanks.
> Mac
> 
> 
> --- jw schultz <jw at pegasys.ws> wrote:
> > Try hitting CR once in awhile.  message reformatted
> > for
> > readability.
> > 
> > On Tue, May 06, 2003 at 03:22:27AM -0700, Mac Swiss
> > wrote:
> > > Hi all, I want to copy files from a remote server
> > to a
> > > local directory with ssh. I've some difficulties
> > with that
> > > because on the Remoteserver I have a directory
> > "/www/ftp"
> > > with a lot of subdirectories with each of them 4
> > other
> > > subdirectories. I want to sync only */data/* to
> > the local
> > > machine without */images/* or */doc/* or
> > */movies/* Any
> > > solution would be appreciated. regardsMac  
> > 
> > Rsync will do what you want.  The manpage is shorter
> > than
> > "War and Peace" and much more applicable to your
> > problem.
> > 
> > -- 
> >
> ________________________________________________________________
> > 	J.W. Schultz            Pegasystems Technologies
> > 	email address:		jw at pegasys.ws
> > 
> > 		Remember Cernan and Schmitt
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt


More information about the rsync mailing list