version 1.91, 2011/09/05 05:56:13 |
version 1.92, 2013/07/25 00:56:51 |
|
|
.Nm |
.Nm |
will abort if any of the following |
will abort if any of the following |
commands fail: |
commands fail: |
.Ic get , put , rename , ln , |
.Ic get , put , reget , rename , ln , |
.Ic rm , mkdir , chdir , ls , |
.Ic rm , mkdir , chdir , ls , |
.Ic lchdir , chmod , chown , |
.Ic lchdir , chmod , chown , |
.Ic chgrp , lpwd , df , symlink , |
.Ic chgrp , lpwd , df , symlink , |
|
|
Quit |
Quit |
.Nm sftp . |
.Nm sftp . |
.It Xo Ic get |
.It Xo Ic get |
.Op Fl Ppr |
.Op Fl aPpr |
.Ar remote-path |
.Ar remote-path |
.Op Ar local-path |
.Op Ar local-path |
.Xc |
.Xc |
|
|
.Ar local-path |
.Ar local-path |
must specify a directory. |
must specify a directory. |
.Pp |
.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 local file matches |
|
the remote copy. |
|
If the remote file differs from the partial local copy then the resultant file |
|
is likely to be corrupt. |
|
.Pp |
If either the |
If either the |
.Fl P |
.Fl P |
or |
or |
|
|
.It Ic quit |
.It Ic quit |
Quit |
Quit |
.Nm sftp . |
.Nm sftp . |
|
.It Xo Ic reget |
|
.Op Fl Ppr |
|
.Ar remote-path |
|
.Op Ar local-path |
|
.Xc |
|
Resume download of |
|
.Ar remote-path . |
|
Equivalent to |
|
.Ic get |
|
with the |
|
.Fl a |
|
flag set. |
.It Ic rename Ar oldpath Ar newpath |
.It Ic rename Ar oldpath Ar newpath |
Rename remote file from |
Rename remote file from |
.Ar oldpath |
.Ar oldpath |