preserving perms/owner with scp?

Bill Campbell linux-sxs
Mon May 17 12:02:13 PDT 2004


On Mon, May 10, 2004, Net Llama! wrote:
>On 05/10/04 16:21, Kurt Wall wrote:
>>In a 0.4K blaze of typing glory, Net Llama! wrote:
>>
>>>Anyone know of a way to preserve permissions & ownership when moving files
>>>with scp?
>>
>>
>>scp -p 
>>
>>Kurt
>
>hrmmm, tried scp'ing files that were owned by another user as root. 
>they ended up being owned by root.  am i missing something?

Does the other user exist on the target system?

Rsync will also handle this, and often more efficiently as it
only has to copy things that have changed (and those using a
binary diff technique that minimizes bandwidth).

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Never blame a legislative body for not doing something.  When they do
nothing, that don't hurt anybody.  When they do something is when they
become dangerous.''
    Will Rogers



More information about the Linux-users mailing list