summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/ftp.1
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-09-08 19:31:17 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-09-08 19:31:17 +0000
commit80d370e186c3afb94a60c35cc67958dd3836d2f4 (patch)
treee0348a773d37e32d4a15c28f240f9bb148a5703a /usr.bin/ftp/ftp.1
parentd898d88f89f4c17c8f4c26d522aef8726406ee90 (diff)
- simplify mget(): remove the duplicate code and just use getit(),
as a result it can do nice things getit() does such as: - -n: use 'newer' for transfers (fetches files that are newer on the server, than locally), this can be used for e.g. mirroring (mget -cnr 4.* would fetch missing files, continue interrupted transfers, and replace newer files of 4.X dirs) - -d: spedify depth of the recurrence. e.g. 'mget -rd 2 patches' in pub/openbsd would fetch only archive files, not going further into dirs - use static restartit, max_depth instead of doing the magic tested/requested&ok merdely@; ok pyr@, millert@ man page tweaks&ok jmc@
Diffstat (limited to 'usr.bin/ftp/ftp.1')
-rw-r--r--usr.bin/ftp/ftp.135
1 files changed, 22 insertions, 13 deletions
diff --git a/usr.bin/ftp/ftp.1 b/usr.bin/ftp/ftp.1
index 0ef122e015f..7ee7bdbf699 100644
--- a/usr.bin/ftp/ftp.1
+++ b/usr.bin/ftp/ftp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ftp.1,v 1.73 2008/08/22 08:52:35 sobrado Exp $
+.\" $OpenBSD: ftp.1,v 1.74 2008/09/08 19:31:16 martynas Exp $
.\" $NetBSD: ftp.1,v 1.22 1997/08/18 10:20:22 lukem Exp $
.\"
.\" Copyright (c) 1985, 1989, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)ftp.1 8.3 (Berkeley) 10/9/94
.\"
-.Dd $Mdocdate: August 22 2008 $
+.Dd $Mdocdate: September 8 2008 $
.Dt FTP 1
.Os
.Sh NAME
@@ -565,7 +565,8 @@ on the remote machine.
A synonym for
.Ic mls .
.It Xo Ic mget
-.Op Fl cr
+.Op Fl cnr
+.Op Fl d Ar depth
.Ar remote-files
.Xc
Expand the
@@ -589,18 +590,26 @@ which can be changed with
new local directories can be created with
.Ql "\&! mkdir directory" .
.Pp
-If the
-.Fl c
-flag is specified then
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl c
+Use
.Ic reget
-is used instead of
+instead of
.Ic get .
-If the
-.Fl r
-flag is specified,
-.Nm
-recursively descends the directory tree,
-transferring all files and directories.
+.It Fl d Ar depth
+Specify the maximum recursion level
+.Ar depth .
+The default is 0, which means unlimited.
+.It Fl n
+Use
+.Ic newer
+instead of
+.Ic get .
+.It Fl r
+Recursively descend the directory tree, transferring all files and
+directories.
+.El
.It Ic mkdir Ar directory-name
Make a directory on the remote machine.
.It Ic mls Ar remote-files local-file