⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 554-557.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Using Linux:System Maintenance</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789716232//-->

<!--TITLE=Using Linux//-->

<!--AUTHOR=William Ball//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=31//-->

<!--PAGES=554-557//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="550-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="558-561.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><TT>taper</TT> works best with tape drives connected to a floppy disk drive controller. To find out if you have a version of <TT>ftape</TT> more recent than 3.0, you can look in your <TT>/dev</TT> directory. To download a recent version of the new <TT>zftape</TT> driver, point your browser to <A HREF="ftp://sunsite.unc.edu/pub/linux/kernel/tapes/zftape-1.06.tar.gz">ftp://sunsite.unc.edu/pub/Linux/kernel/tapes/zftape-1.06.tar.gz</A>. Or check out <A HREF="http://samuel.math.rwth-aachen.de/~lbfm/claus/ftape">http://samuel.math.rwth-aachen.de/~LBFM/claus/ftape</A> for the latest versions of <TT>ftape</TT> and <TT>zftape</TT>. For more information about the differences between these drivers, see the <TT>taper</TT> documentation in <TT>/usr/doc/taper.6.8.0a10</TT>. You can view it with a pager command such as <TT>less</TT>.</P>

<P>After you have determined which driver to run with <TT>taper</TT>, you can use the menu system to set up an interactive backup. Figure 31.1 shows the main <TT>taper</TT> menu.</P>

<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/31-01.jpg',632,370 )"><IMG SRC="images/31-01t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-01.jpg',632,370)"><FONT COLOR="#000077"><B>Figure 31.1</B></FONT></A>&nbsp;&nbsp;From the main <TT>taper</TT> menu, you can archive and restore files as well as change your <TT>taper</TT> preferences.

</P>

<P>Selecting the backup module brings up a three-part selection menu (see Figure 31.2).

</P>

<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/31-02.jpg',716,450 )"><IMG SRC="images/31-02t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-02.jpg',716,450)"><FONT COLOR="#000077"><B>Figure 31.2</B></FONT></A>&nbsp;&nbsp;The <TT>taper</TT> backup menu lets you examine existing taper archives and select files for a new archive.

</P>

<P>To maneuver within the <TT>taper</TT> menus and screens, you can use arrow, Tab, and other keys (see Figure 31.3).</P>

<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/31-03.jpg',686,454 )"><IMG SRC="images/31-03t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-03.jpg',686,454)"><FONT COLOR="#000077"><B>Figure 31.3</B></FONT></A>&nbsp;&nbsp;You can use various keys to maneuver in a <TT>taper</TT> menu.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>Be careful:&nbsp;&nbsp;</B><BR>Use the Test Make Tape option only on <I>new</I> tapes because it will erase and write some data onto the tape.<HR></FONT>

</BLOCKQUOTE>

<P>Across the top of the backup module screen is the archive ID number and the title of the archive (you will be asked to enter a title for your backup when you enter this menu). The upper-left portion of the screen lists the files contained in the current directory. You can move to subdirectories by selecting their names by using the arrow keys and then pressing Enter (move into the parent directory by selecting the .. item). The upper-right portion of the screen lists current archives created with <TT>taper</TT> on the device you selected when starting <TT>taper</TT>. The bottom portion of the screen lists files that you have selected for the current backup. Select files by using the <TT>i</TT> command. If you select a directory, all the files within that directory are selected; you can unselect files by using the <TT>u</TT> command.</P>

<P>Now that you have some familiarity with the <TT>taper</TT> menu interface, you can use it to make backups. Start with a new, preformatted tape on a floppy tape drive (the process is similar for other storage devices and floppies).</P>

<P><FONT SIZE="+1"><B><I>Backing up with <I>taper</I>

</I></B></FONT></P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Determine the backup device you want to use and ensure that you have the appropriate device driver (<TT>taper</TT> was developed using a Colorado tape drive, so it works well with those).

<DD><B>2.</B>&nbsp;&nbsp;Start <TT>taper</TT> by using the appropriate command-line instruction (<TT>taper -T z</TT>, <TT>taper -T f</TT>, <TT>taper -T r</TT>, and so on&#151;refer to the previous device selection instructions). After you have started <TT>taper</TT>, you can save this device driver information by using the Preferences menu so you do not have to enter it again.

<DD><B>3.</B>&nbsp;&nbsp;After <TT>taper</TT> has started, enter the Utilities menu.

<DD><B>4.</B>&nbsp;&nbsp;In the Utilities menu, select Test Make Tape.

<DD><B>5.</B>&nbsp;&nbsp;Test Make Tape might determine that you need to run the <TT>mktape</TT> utility; assuming this is a new tape, it&#146;s safe to do this now.

<DD><B>6.</B>&nbsp;&nbsp;Select the Back to Main Menu option.

<DD><B>7.</B>&nbsp;&nbsp;Enter the Backup Module.

<DD><B>8.</B>&nbsp;&nbsp;Using the menu system at the top-left of the screen, select the files and the directories to be archived. <TT>taper</TT> displays the list of files selected in the bottom half of the screen.

<DD><B>9.</B>&nbsp;&nbsp;When you have selected all the files you need to include in this archive, press F to start the archive. <TT>taper</TT> creates the archive and displays some details about it.

<DD><B>10.</B>&nbsp;&nbsp;You might want to make a note of the title of the archive to use to label the tape. taper records this information in an archive index file for use whenever the archive is used. You can now begin selecting files for another archive, or exit the Backup Module and exit <TT>taper</TT>.

</DL>



<TABLE BORDER="2" BORDERCOLOR="#0000" ALIGN="CENTER">

<TR><TD><FONT SIZE="+1"><B>Be careful</B></FONT>

<BR>Use the Test Make Tape option only on <I>new</I> tapes because it will erase and write some data onto the tape.</TABLE>



<P>If you do not have a preformatted tape, you can use a third-party application in Windows or MS-DOS (for floppies, you can use the Linux utility <TT>fdformat</TT>&#151;see the man page on <TT>fdformat</TT> for details). Some aspects of <TT>taper</TT> differ from <TT>tar</TT>. <TT>taper</TT> uses a proprietary compression utility by default; you can change the compression utility to <TT>gzip</TT> in Preferences menu. Also, <TT>taper</TT> makes incremental backups by default (it only overwrites a file if the archived version is older than the selected file). Likewise, <TT>taper</TT> automatically restores the most recent version of a file if several versions exist in different <TT>taper</TT> archives. Most of these behaviors can be changed using the Preferences menu.</P>

<P>For more information about <TT>taper</TT>, including available drivers (Iomega, for example), refer to the taper documentation (<TT>usr/info/taper.6.8.0a10</TT>).</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>SEE ALSO</B>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;For more information about the Red Hat package manager (<TT>rpm</TT>) and <TT>glint</TT>, see page 520.

<DD><B>&#149;</B>&nbsp;&nbsp;For more information about setting up peripheral storage devices for use with Linux, see page 99, page 119, and page 133.

</DL>

<HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077">Backing Up with Floppy Disks</FONT></H4>

<P><TT>taper</TT> allows you to use several kinds of peripherals to back up files. Standard Linux utilities also work with a number of different devices, including SCSI drives and other external hard drives. Often, though, backups use a tape drive or floppies. Floppy disks are convenient for small backups, or at times when you need to store a few files or directories for physical transport to another location.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="550-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="558-561.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -