problem with parent directories

Dave Dykstra dwd at bell-labs.com
Thu Jan 24 02:16:17 EST 2002


On Wed, Jan 23, 2002 at 11:26:43AM +0100, Ben Turner wrote:
> 
> hello,
> 
> i am having problems syncing directories. what i want to accomplish is
> the copying of a directory from a beta environment to a live environment.
> at the moment what i am doing is this:
> 
> /usr/local/bin/rsync -rtv --include '*/' --include 'dir/to/publish' --exclude '*' /web/beta/betawebsite user at webserver::web/livewebsite
> 
> unfortunately this takes ages, as rsync of course runs through the entire
> list of directories on the beta site. the problems that arise are that
> parent directories sometimes do not exist (in this example 'dir' might not
> exist), as they have not yet been published to the live environment, so i
> don't really see any other way of doing this?

How about:
    cd /web/beta/betawebsite
    /usr/local/bin/rsync -rtvR dir/to/publish user at webserver::web/livewebsite

- Dave Dykstra




More information about the rsync mailing list