124 lines
2.6 KiB
HTML
124 lines
2.6 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>backup(8)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>backup(8)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
backup - backup files
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>backup</STRONG> [<STRONG>-djmnorstvz</STRONG>] <EM>dir1</EM> <EM>dir2</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-d</STRONG> At top level, only directories are backed up
|
|
|
|
<STRONG>-j</STRONG> Do not copy junk: *.<EM>Z</EM>, *.<EM>bak</EM>, <EM>a</EM>.<EM>out</EM>, <EM>core</EM>, etc
|
|
|
|
<STRONG>-m</STRONG> If device full, prompt for new diskette
|
|
|
|
<STRONG>-n</STRONG> Do not backup top-level directories
|
|
|
|
<STRONG>-o</STRONG> Do not copy *.<EM>o</EM> files
|
|
|
|
<STRONG>-r</STRONG> Restore files
|
|
|
|
<STRONG>-s</STRONG> Do not copy *.<EM>s</EM> files
|
|
|
|
<STRONG>-t</STRONG> Preserve creation times
|
|
|
|
<STRONG>-v</STRONG> Verbose; list files being backed up
|
|
|
|
<STRONG>-z</STRONG> Compress the files on the backup medium
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>backup</STRONG> <STRONG>-mz</STRONG> <STRONG>.</STRONG> <STRONG>/f0</STRONG> # Backup current directory compressed
|
|
|
|
<STRONG>backup</STRONG> <STRONG>/bin</STRONG> <STRONG>/usr/bin</STRONG>
|
|
# Backup bin from RAM disk to hard disk
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Backup</EM> (recursively) backs up the contents of a given directory and its
|
|
subdirectories to another part of the file system. It has two typical
|
|
uses. First, some portion of the file system can be backed up onto 1 or
|
|
more diskettes. When a diskette fills up, the user is prompted for a new
|
|
one. The backups are in the form of mountable file systems. Second, a
|
|
directory on RAM disk can be backed up onto hard disk. If the target
|
|
directory is empty, the entire source directory is copied there,
|
|
optionally compressed to save space. If the target directory is an old
|
|
backup, only those files in the target directory that are older than
|
|
similar names in the source directory are replaced. <EM>Backup</EM> uses times
|
|
for this purpose, like <EM>make</EM>. Calling <EM>Backup</EM> as <EM>Restore</EM> is equivalent to
|
|
using the -r option; this replaces newer files in the target directory
|
|
with older files from the source directory, uncompressing them if
|
|
necessary. The target directory contents are thus returned to some
|
|
previous state.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/tar.1.html">tar(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|