Hi! I'm new to this list, so excuse me if this is a FAQ, but I've been
reading the list archives and haven't found the answer to my problem.

I need to distribute a list of files to different hosts, and set the files
permissions to those in the source files, but KEEP the remote dirs perms
and owners if they exist.

For example:

In the source host I have:
/tmp/remotehost/home/tools/bin/sos.pl      4755 root.root 
/tmp/remotehost/etc/motd                    644 root.root 
... (and a lot more files)

And I want to distribute it to remotehost:/

My problem is that I need to install the files with the source permissions
(if I loose the suid in sos.pl, it won't work). But if I install this,
rsync will also set the remote parent directory permissions to the source
directory permissions, and it break some things that need specific dir
permis.

Also, in some hosts, /home is a symlink to /usr/home, and when I install
the previous tree, rsync will create a /home dir in the remote host,
causing a lot of problems (people look for their home in /home, and now
we don't have the shortcut).

I've tried with and without --relative option.

The behaviour I need is the following:

1. If any of the remote parent dirs already exist DON'T TOUCH IT
2. Create any needed directories with the source dir permissions
3. Install file with source permissions

Is there any option to do this?

Salu2!
-- 
------------------------------------
Miguel Armas del Rio <[EMAIL PROTECTED]>
Division de Comunicaciones (DC)
Universidad de Las Palmas
------------------------------------


Reply via email to