diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-03-31 05:07:03 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-03-31 05:09:42 +0200 |
commit | 3fa539c3ffaabd6211995512d33e29150f88c5c5 (patch) | |
tree | ac079600f15225b56f51e4af31321610471f6fd0 /sftp.1 | |
parent | upstream: add support for the "corp-data" protocol extension to (diff) | |
download | openssh-3fa539c3ffaabd6211995512d33e29150f88c5c5.tar.xz openssh-3fa539c3ffaabd6211995512d33e29150f88c5c5.zip |
upstream: add a sftp client "cp" command that supports server-side
copying of files. Useful for this task and for testing the copy-data
extension. Patch from Mike Frysinger; ok dtucker@
OpenBSD-Commit-ID: 1bb1b950af0d49f0d5425b1f267e197aa1b57444
Diffstat (limited to 'sftp.1')
-rw-r--r-- | sftp.1 | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.\" $OpenBSD: sftp.1,v 1.138 2021/07/02 05:11:21 dtucker Exp $ +.\" $OpenBSD: sftp.1,v 1.139 2022/03/31 03:07:03 djm Exp $ .\" .\" Copyright (c) 2001 Damien Miller. All rights reserved. .\" @@ -22,7 +22,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 2 2021 $ +.Dd $Mdocdate: March 31 2022 $ .Dt SFTP 1 .Os .Sh NAME @@ -144,7 +144,7 @@ will abort if any of the following commands fail: .Ic get , put , reget , reput , rename , ln , .Ic rm , mkdir , chdir , ls , -.Ic lchdir , chmod , chown , +.Ic lchdir , copy , cp , chmod , chown , .Ic chgrp , lpwd , df , symlink , and .Ic lmkdir . @@ -400,6 +400,18 @@ If the flag is specified, then symlinks will not be followed. Note that this is only supported by servers that implement the "lsetstat@openssh.com" extension. +.It Ic copy Ar oldpath Ar newpath +Copy remote file from +.Ar oldpath +to +.Ar newpath . +.Pp +Note that this is only supported by servers that implement the "copy-data" +extension. +.It Ic cp Ar oldpath Ar newpath +Alias to +.Ic copy +command. .It Xo Ic df .Op Fl hi .Op Ar path |