diff options
Diffstat (limited to 'sftp.1')
-rw-r--r-- | sftp.1 | 29 |
1 files changed, 24 insertions, 5 deletions
@@ -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 . |
165 | This option is directly passed to | 165 | This option is directly passed to |
166 | .Xr ssh 1 . | 166 | .Xr ssh 1 . |
167 | .It Fl f | ||
168 | Requests that files be flushed to disk immediately after transfer. | ||
169 | When uploading files, this feature is only enabled if the server | ||
170 | implements the "fsync@openssh.com" extension. | ||
167 | .It Fl i Ar identity_file | 171 | .It Fl i Ar identity_file |
168 | Selects the file from which the identity (private key) for public key | 172 | Selects the file from which the identity (private key) for public key |
169 | authentication is read. | 173 | authentication is read. |
@@ -348,7 +352,7 @@ extension. | |||
348 | Quit | 352 | Quit |
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. | |||
376 | If the remote file contents differ from the partial local copy then the | 380 | If the remote file contents differ from the partial local copy then the |
377 | resultant file is likely to be corrupt. | 381 | resultant file is likely to be corrupt. |
378 | .Pp | 382 | .Pp |
383 | If the | ||
384 | .Fl f | ||
385 | flag is specified, then | ||
386 | .Xr fsync 2 | ||
387 | will ba called after the file transfer has completed to flush the file | ||
388 | to disk. | ||
389 | .Pp | ||
379 | If either the | 390 | If either the |
380 | .Fl P | 391 | .Fl P |
381 | or | 392 | or |
@@ -479,7 +490,7 @@ Create remote directory specified by | |||
479 | .It Ic progress | 490 | .It Ic progress |
480 | Toggle display of progress meter. | 491 | Toggle 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 |
499 | must specify a directory. | 510 | must specify a directory. |
500 | .Pp | 511 | .Pp |
512 | If the | ||
513 | .Fl f | ||
514 | flag is specified, then a request will be sent to the server to call | ||
515 | .Xr fsync 2 | ||
516 | after the file has been transferred. | ||
517 | Note that this is only supported by servers that implement | ||
518 | the "fsync@openssh.com" extension. | ||
519 | .Pp | ||
501 | If either the | 520 | If either the |
502 | .Fl P | 521 | .Fl P |
503 | or | 522 | or |