Rsync recursion

Mark de Jong dejongm at secdog.com
Tue Jul 30 13:21:04 EST 2002


Hello,
I'm trying to break up my rsync process by separating a directory tree
into multiple rsync processes because I'm witnessing some errors trying
to rsync large directory trees on Windows machines. After breaking up
the tree I tried to rsync each individual directory starting from the
bottom directory on up using the command:

	foreach ($array as $directory){	/*	$array = list of
directories gathered from the larger directory I'm trying to rsync */ 
		rsync -vz -e ssh username at hostname:/src/$directory/
/dst/$directory/
	}

But this comes up with the error:

	client: nothing to do: perhaps you need to specify some
filenames or the --recursive option?

which is exactly what I'm trying to avoid.

I've also tried:

	rsync -vz -e ssh username at hostname:/src/$directory/*
/dst/$directory/.

but that states that /src/$directory/* does not exist.

Does anyone have a suggestion as to how to perfom this task?

Thanks for your time.

Sincerely,

Mark J. de Jong
,.,.,.,...,.,,.,..,.,....,.,..,.,..,.,.,,.,...,..,,...
Senior Network Engineer - Secure Dog Hosting, Inc.
P.703.256.2869 F.703.256.3810 C.571.212.0027
http://www.secdog.com






More information about the rsync mailing list