problem with parent directories

Ben Turner ben at
Wed Jan 23 21:26:43 EST 2002


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?

can anybody nudge me into the right direction? :)



He who breaks a thing to find out what it is, has left the path of wisdom.

More information about the rsync mailing list