Re: Preserving ONLY modification times & access times for "scp"
From: Darren Tucker (dtucker_at_zip.com.au)
Date: 09/01/05
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 01 Sep 2005 08:02:21 +1000 To: alexansp@us.ibm.com
alexansp@us.ibm.com wrote:
> If one uses the "-p" flag (with scp), it will preserve modification
> times, access times, and modes from the original file. Is there a way to
> ONLY preserve modification times & access times, but NOT attempt to
> preserve modes & ownership from original file?
[...]
> SSH Version: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
No, unless you're prepared to modify the code. rsync -t can do it, and
can run over ssh.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]