Hi All,

As sftp resume upload has been implemented, here's a man page diff
to describe the feature.

Feedback welcomed.

Index: sftp.1
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sftp.1,v
retrieving revision 1.97
diff -u -p -u -p -r1.97 sftp.1
--- sftp.1      20 Oct 2013 09:51:26 -0000      1.97
+++ sftp.1      21 Apr 2014 16:28:22 -0000
@@ -108,9 +108,10 @@ Forces
 .Nm
 to use IPv6 addresses only.
 .It Fl a
-Attempt to continue interrupted downloads rather than overwriting existing
-partial or complete copies of files.
-If the remote file contents differ from the partial local copy then the
+Attempt to continue interrupted downloads or uploads rather than overwriting 
+existing partial or complete copies of files.
+If the remote file contents differ from the partial local copy or the
+inverse, then the
 resultant file is likely to be corrupt.
 .It Fl B Ar buffer_size
 Specify the size of the buffer that
@@ -134,7 +135,7 @@ may be used to indicate standard input.
 .Nm
 will abort if any of the following
 commands fail:
-.Ic get , put , reget , rename , ln ,
+.Ic get , put , reput, reget , rename , ln ,
 .Ic rm , mkdir , chdir , ls ,
 .Ic lchdir , chmod , chown ,
 .Ic chgrp , lpwd , df , symlink ,
@@ -495,7 +496,7 @@ Create remote directory specified by
 .It Ic progress
 Toggle display of progress meter.
 .It Xo Ic put
-.Op Fl fPpr
+.Op Fl afPpr
 .Ar local-path
 .Op Ar remote-path
 .Xc
@@ -514,6 +515,13 @@ is specified, then
 .Ar remote-path
 must specify a directory.
 .Pp
+If the .Fl a
+flag is specified, then attempt to resume partial
+transfers of existing files.  Note that resumption assumes that
+any partial copy of the remote file matches the local copy.  If
+the local file contents differ from the remote local copy then
+the resultant file is likely to be corrupt.
+.Pp
 If the
 .Fl f
 flag is specified, then a request will be sent to the server to call
@@ -540,6 +548,18 @@ Display remote working directory.
 .It Ic quit
 Quit
 .Nm sftp .
+.It Xo Ic reput
+.Op Fl Ppr
+.Op Ar local-path
+.Ar remote-path
+.Xc
+Resume upload of
+.Op Ar local-path .
+Equivalent to
+.Ic put
+with the
+.Fl a
+flag set.
 .It Xo Ic reget
 .Op Fl Ppr
 .Ar remote-path

Reply via email to