feature request: add -a to scp for archive-style copy

Austin Gonyou austin at coremetrics.com
Thu Feb 21 07:28:40 EST 2002


I think this is useful for minimal systems, where you don't want
rsync/tar to exist. 

On Wed, 2002-02-20 at 14:22, Craig J Copi wrote:
> Jim Knoble writes:
> >Circa 2002-Feb-20 13:37:06 -0500 dixit Joe Harrington:
> >
> >: This is a feature request for scp.  scp has no easy option to copy
> >: symlinks, etc. to reproduce a directory tree.  The -r option follows
> >: symlinks and reads the data out of device files when copying.  A few
> >: years ago, the -a option was added to normal cp, replacing the
> >: cumbersome and arcane
> >  [...]
> >
> >'cp -a', to my knowledge, only works with the cp from GNU fileutils.
> 
> -a == -pRd  where
> -p is preserve
> -R is recurse
> -d is "don't dereference symlinks"
> 
> For OpenBSD cp this appears to be equivalent to -pRP.
> 
> scp already has -r and -p, it does not have the equivalent of -d or -P.
> So is such a thing useful for scp?  Using rsync/tar/... isn't that hard.
> 
> Craig
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: austin at coremetrics.com

"It is the part of a good shepherd to shear his flock, not to skin it."
Latin Proverb



More information about the openssh-unix-dev mailing list