summaryrefslogtreecommitdiffstats
path: root/sbin/dump/dump.8
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-11-18 18:00:43 +0000
committerjoerg <joerg@FreeBSD.org>1995-11-18 18:00:43 +0000
commit23c0dfac90b2ba18799e6bd7ba89e47bc9521800 (patch)
tree1ee3c2b171fd54126862370e801a7a1a6cc7091e /sbin/dump/dump.8
parent39bf0372f9f49e45f2a318ed51c8f74beae187a8 (diff)
downloadFreeBSD-src-23c0dfac90b2ba18799e6bd7ba89e47bc9521800.zip
FreeBSD-src-23c0dfac90b2ba18799e6bd7ba89e47bc9521800.tar.gz
Andreas Klemm's patch set for dump(8), with some minor (cosmetic)
changes and one addition by me. . Use reasonable defaults for the tape drive (/dev/rst0) instead of something we actually don't have. . Add a summary line displaying the alapsed time and the total throughput. . Replace "rmt" for the remote location of rmt(8) by "/etc/rmt", since this is the historical protocol, and relying on the $PATH causes a big pain. Make it adjustable via an environmental variable though. Reviewed by: joerg (for Andreas' part) Submitted by: andreas@knobel.gun.de (Andreas Klemm)
Diffstat (limited to 'sbin/dump/dump.8')
-rw-r--r--sbin/dump/dump.827
1 files changed, 22 insertions, 5 deletions
diff --git a/sbin/dump/dump.8 b/sbin/dump/dump.8
index 810b706..2176fe3 100644
--- a/sbin/dump/dump.8
+++ b/sbin/dump/dump.8
@@ -102,10 +102,10 @@ Write the backup to
.Ar file
may be a special device file
like
-.Pa /dev/rmt12
+.Pa /dev/rst0
(a tape drive),
-.Pa /dev/rsd1c
-(a disk drive),
+.Pa /dev/rfd1
+(a floppy disk drive),
an ordinary file,
or
.Ql Fl
@@ -122,6 +122,12 @@ or
.Nm dump
writes to the named file on the remote host using
.Xr rmt 8 .
+The default path name of the remote
+.Xr rmt 8
+program is
+.Pa /etc/rmt ;
+this can be overridden by the environment variable
+.Ev RMT .
.It Cm d Ar density
Set tape density to
.Ar density .
@@ -256,7 +262,7 @@ to minimize the number of tapes follows:
.It
Always start with a level 0 backup, for example:
.Bd -literal -offset indent
-/sbin/dump 0uf /dev/nrst1 /usr/src
+/sbin/dump 0uf /dev/nrst0 /usr/src
.Ed
.Pp
This should be done at set intervals, say once a month or once every two months,
@@ -280,9 +286,15 @@ used, also on a cyclical basis.
.Pp
After several months or so, the daily and weekly tapes should get
rotated out of the dump cycle and fresh tapes brought in.
+.Sh ENVIRONMENT
+The environment variable
+.Ev RMT
+will be used to determine the pathname of the remote
+.Xr rmt 8
+program.
.Sh FILES
.Bl -tag -width /etc/dumpdates -compact
-.It Pa /dev/rmt8
+.It Pa /dev/rst0
default tape unit to dump to
.It Pa /etc/dumpdates
dump date records
@@ -311,6 +323,11 @@ Each reel requires a new process, so parent processes for
reels already written just hang around until the entire tape
is written.
.Pp
+restore(8) is currently unable to restore dumps that were created
+with a blocksize larger than 32 on some tape drives. This is likely
+a bug in the tape driver. Workaround for safety reasons:
+dump aborts with an error message when choosing a blocksize > 32.
+.Pp
.Nm Dump
with the
.Cm W
OpenPOWER on IntegriCloud