1010-1013.html
来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 111 行
HTML
111 行
<HTML>
<HEAD>
<TITLE>Linux Unleashed, Third Edition:Lone Star Software’s Lone-Tar</TITLE>
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0672313723//-->
<!--TITLE=Linux Unleashed, Third Edition//-->
<!--AUTHOR=Tim Parker//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Sams//-->
<!--CHAPTER=64//-->
<!--PAGES=10101013//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="1007-1010.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="1013-1016.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H3><A NAME="Heading4"></A><FONT COLOR="#000077">Installing Lone-Tar</FONT></H3>
<P>The installation process for Lone-Tar is pretty simple. You need to log in as root and change to the <TT>/tmp</TT> directory. Once there, extract all the files from the CD-ROM or disk (if you have put the Lone-Tar software on the disk) with a <TT>tar</TT> command. For example, if you have copied the Lone-Tar files to a floppy in drive A:, you would log in to the system as root and issue the following two commands:</P>
<!-- CODE SNIP //-->
<PRE>
cd /tmp
tar xvf /dev/rfd0
</PRE>
<!-- END CODE SNIP //-->
<P>The <TT>tar</TT> command tells Linux to extract all the files from the first floppy drive (<TT>/dev/rfd0</TT>) and store them in the current directory.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>Tip: </B><BR>Some Linux systems don’t address the first floppy as <TT>/dev/rfd0</TT> but prefer <TT>/dev/fd0</TT> instead. If you get a message about “Device unknown” when you use the command line shown above, use <TT>/dev/fd0</TT> as the floppy device name instead.<HR></FONT>
</BLOCKQUOTE>
<P>If you are installing from CD-ROM, you can copy the files to the <TT>/tmp</TT> directory directly using <TT>cp</TT>. For example, if the files are stored on the CD-ROM in the directory <TT>/lone-tar</TT>, and the CD-ROM is mounted to your Linux system in the directory <TT>/cdrom</TT>, you would issue the commands:</P>
<!-- CODE SNIP //-->
<PRE>
cd /tmp
cp /cdrom/lone-tar/* .
</PRE>
<!-- END CODE SNIP //-->
<P>The exact command line you use depends on the location of the Lone-Tar files on the CD-ROM and the mount location on your system.
</P>
<P>Once the files are all safely in the <TT>/tmp</TT> directory, you can start the installation process by issuing the command:</P>
<!-- CODE SNIP //-->
<PRE>
./init.ltar
</PRE>
<!-- END CODE SNIP //-->
<P>This program was written by Lone Star Software to install all the components of Lone-Tar properly. You are asked a bunch of questions about your tape or backup drive, its capacity, and whether you want to print the online manuals. If you don’t want to print the manuals during the installation process, you can print them at any time from the Lone-Tar menu.
</P>
<P>To start the Lone-Tar system in menu-driven mode, issue the command</P>
<!-- CODE SNIP //-->
<PRE>
ltmenu
</PRE>
<!-- END CODE SNIP //-->
<P>You should see a screen like the one shown in Figure 64.3. Pressing Enter takes you to the main menu shown in Figure 64.2. If you want to use your Lone-Tar system in command mode, use this command:
</P>
<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/64-03.jpg',572,367 )"><IMG SRC="images/64-03t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/64-03.jpg',572,367)"><FONT COLOR="#000077"><B>Figure 64.3.</B></FONT></A> If Lone-Tar was installed correctly, you should see this welcome screen when you start up the menu mode.</P>
<!-- CODE SNIP //-->
<PRE>
lone-tar
</PRE>
<!-- END CODE SNIP //-->
<P>Follow it by any options or by itself to display the help screen shown in Figure 64.3.
</P>
<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Backing Up with Lone-Tar</FONT></H3>
<P>Backups are a vital part of any Linux system, whether you use it for serious work or just for playing. The reason is simple: reloading your Linux system, reconfiguring it the way it was, and reloading all your applications can take a long time and sometimes lead to errors. Recovering from a backup tape or other backup device can take a few minutes, but requires little intervention on your part. If you have important information stored on your Linux system, then you really should have regular backups made for safety’s sake because it’s often impossible to reconstruct data you lost.
</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>Tip: </B><BR>If you are forced to use floppies for your backups, you should use the Floppy choice from the main Lone-Tar menu. This option leads to the Floppy menu, which lets you back up and restore using your floppy drives instead of a tape drive.<HR></FONT>
</BLOCKQUOTE>
<P>Lone-Tar lets you make two kinds of backups: masters and incrementals. The master backup is a complete backup of your system, with every file on the filesystems backed up safely. An incremental backup is made between masters and holds the changes to the system since the last master. Incremental mode lets you make backups much quicker because there is no need to back up every file. Linux knows which files have changed because of the attributes attached to each file, and the files that have been created or modified since the last master backup are written to the backup medium. In case of a problem and a reload, the master is reloaded first, and then the incrementals made since the master. If you’ve lost a file or two, you can often get them from the incremental itself.
</P>
<P>The manner in which you create master and incremental backups depends on how much you use your system, how much data you change daily, and how important your system is to you. For example, a regularly used system could get a master backup once a week to a high-capacity drive. Incrementals could be performed automatically each night.</P>
<P>If you don’t use your system much, you can do master backups once a month and incrementals weekly, although this isn’t really recommended. For heavily loaded systems, you may want to forget about incrementals all together and make a new master backup every night. One of Lone-Tar’s strengths is the capability to automate backups, as you will see.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="1007-1010.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="1013-1016.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?