summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-10-17 11:48:52 +1100
committerDamien Miller <djm@mindrot.org>2013-10-17 11:48:52 +1100
commitf29238e67471a7f1088a99c3c3dbafce76b790cf (patch)
tree39ea232a72df52b4adbc3affea0108d8b0f45b42 /sftp.1
parent51682faa599550a69d8120e5e2bdbdc0625ef4be (diff)
- djm@cvs.openbsd.org 2013/10/17 00:30:13
[PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c] fsync@openssh.com protocol extension for sftp-server client support to allow calling fsync() faster successful transfer patch mostly by imorgan AT nas.nasa.gov; bz#1798 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.129
1 files changed, 24 insertions, 5 deletions
diff --git a/sftp.1 b/sftp.1
index 85d64a7fc..9809bec6f 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.94 2013/08/07 06:24:51 jmc Exp $ 1.\" $OpenBSD: sftp.1,v 1.95 2013/10/17 00:30:13 djm Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -22,7 +22,7 @@
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\" 24.\"
25.Dd $Mdocdate: August 7 2013 $ 25.Dd $Mdocdate: October 17 2013 $
26.Dt SFTP 1 26.Dt SFTP 1
27.Os 27.Os
28.Sh NAME 28.Sh NAME
@@ -31,7 +31,7 @@
31.Sh SYNOPSIS 31.Sh SYNOPSIS
32.Nm sftp 32.Nm sftp
33.Bk -words 33.Bk -words
34.Op Fl 1246aCpqrv 34.Op Fl 1246aCfpqrv
35.Op Fl B Ar buffer_size 35.Op Fl B Ar buffer_size
36.Op Fl b Ar batchfile 36.Op Fl b Ar batchfile
37.Op Fl c Ar cipher 37.Op Fl c Ar cipher
@@ -164,6 +164,10 @@ per-user configuration file for
164.Xr ssh 1 . 164.Xr ssh 1 .
165This option is directly passed to 165This option is directly passed to
166.Xr ssh 1 . 166.Xr ssh 1 .
167.It Fl f
168Requests that files be flushed to disk immediately after transfer.
169When uploading files, this feature is only enabled if the server
170implements the "fsync@openssh.com" extension.
167.It Fl i Ar identity_file 171.It Fl i Ar identity_file
168Selects the file from which the identity (private key) for public key 172Selects the file from which the identity (private key) for public key
169authentication is read. 173authentication is read.
@@ -348,7 +352,7 @@ extension.
348Quit 352Quit
349.Nm sftp . 353.Nm sftp .
350.It Xo Ic get 354.It Xo Ic get
351.Op Fl aPpr 355.Op Fl afPpr
352.Ar remote-path 356.Ar remote-path
353.Op Ar local-path 357.Op Ar local-path
354.Xc 358.Xc
@@ -376,6 +380,13 @@ the remote copy.
376If the remote file contents differ from the partial local copy then the 380If the remote file contents differ from the partial local copy then the
377resultant file is likely to be corrupt. 381resultant file is likely to be corrupt.
378.Pp 382.Pp
383If the
384.Fl f
385flag is specified, then
386.Xr fsync 2
387will ba called after the file transfer has completed to flush the file
388to disk.
389.Pp
379If either the 390If either the
380.Fl P 391.Fl P
381or 392or
@@ -479,7 +490,7 @@ Create remote directory specified by
479.It Ic progress 490.It Ic progress
480Toggle display of progress meter. 491Toggle display of progress meter.
481.It Xo Ic put 492.It Xo Ic put
482.Op Fl Ppr 493.Op Fl fPpr
483.Ar local-path 494.Ar local-path
484.Op Ar remote-path 495.Op Ar remote-path
485.Xc 496.Xc
@@ -498,6 +509,14 @@ is specified, then
498.Ar remote-path 509.Ar remote-path
499must specify a directory. 510must specify a directory.
500.Pp 511.Pp
512If the
513.Fl f
514flag is specified, then a request will be sent to the server to call
515.Xr fsync 2
516after the file has been transferred.
517Note that this is only supported by servers that implement
518the "fsync@openssh.com" extension.
519.Pp
501If either the 520If either the
502.Fl P 521.Fl P
503or 522or