I have a directory that I would like to copy out to multiple
directories on the clients. Can this be done with rsync? I'm using
2.4.6. I have tried endless variations of include/exclude, and either
get no results or the wrong results. Basically, the set up is:
Server:
/template/location/ideas (I want the clients to sync this dir)
Clients:
/user/home/dir/u/name1/ideas
/user/home/dir/u/name2/ideas
/user/home/dir/u/name3/ideas
/user/home/dir/u/name4/ideas
/user/home/dir/u/name5/ideas
I would like to avoid having to make 5 or 6 rsync calls in order
to do this. I also do not want to create a separate ideas dir for each
name (the template contains about 80MB of data), as this ends up wasting a
lot of space. The last command I tried was:
rsync -vvv --progress --archive --delete --force --one-file-system \
--numeric-ids \
--include "/name1/" --include "/*/ideas/" --include "ideas/" \
--include "ideas/*" --exclude "*" \
/template/location/ideas xxx.xxx.xxx.xxx:/user/home/dir/u/
This results in the creation of an ideas directory in /user/home/dir/u on
the client. Not quite what I wanted. The includes of ideas/ and
ideas/* are needed to get rsync to actually include the files in the
template ideas directory. It looks like the include/exclude patterns
are being applied to the sending and receiving side. Is this the
expected behavior? Is there a way to change that? In this scenario, it
seems to just make things more complicated... Or am I totally missing
something?
Thanks,
======================================================================
Matt Sabourin Voice:
Systems Engineer Fax:
Structural Dynamics Research Corp. Pager:
1555 Fairlane Dr., Suite 300 Email: [EMAIL PROTECTED]
Allen Park, MI 48101