[PLUG] Re: sftp and scp - preserving UID/GID (2)
Keith Lofstrom
keithl at kl-ic.com
Tue Dec 21 05:27:14 UTC 2004
Randall Lucas writes:
> I believe scp -p preserves permissions.
Russell Senior writes:
> Er, why not rsync? See the --numeric-ids option.
Elliott Mitchell writes:
> Likely you want the -p option to scp or -P for sftp get/put.
Indeed, -p preserves permissions, but it does NOT preserve numeric
UID/GID . The reason I am asking is for a by-hand "move files one
by one" situation, where the rsync command line is too much typing.
However, if I cannot do it with sftp or scp (and some magic and using
some poorly documented option), I will probably build a Perl script
for moving individual files, built around rsync, with ssh transport.
I can hide the complexity and the typing in the script. That is,
after all, why we love Linux.
Keith
---
Keith Lofstrom keithl at keithl.com Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
More information about the PLUG
mailing list