1007-1010.html
来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 113 行
HTML
113 行
<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=10071010//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch63/1004-1006.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="1010-1013.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 64<BR>Lone Star Software’s Lone-Tar
</FONT></H2>
<P><I>by Tim Parker</I></P>
<DL>
<DT><B>In This Chapter</B>
<DT>• What is Lone-Tar?
<DT>• Using Lone-Tar’s interface
<DT>• Installing Lone-Tar
<DT>• Backing up with Lone-Tar
<DT>• Verifying files
<DT>• Restoring files
<DT>• Utilities and environment: tweaking Lone-Tar
</DL>
<P>As you saw in Chapter 32, “System Administration Basics,” making backups on your Linux system can be a complex and often annoying procedure, especially if you don’t have a high-capacity tape drive or other backup storage device available. If you have to rely on floppies for a backup, you are really in for a frustrating time, as a full backup can take dozens (if not hundreds) of disks. When floppies are all that’s available, most users don’t even bother.
</P>
<P>Many users find the normal backup <TT>tar</TT> utility difficult and unfriendly to work with. On top of that, <TT>tar</TT> can error out for any number of conditions, causing you to have to restart your backup from the very beginning. In many larger UNIX environments, the use of <TT>tar</TT> has been replaced by custom-designed GUI-driven backup utilities, but Linux hasn’t quite caught up to that point yet. However, there are a few alternatives to using straight-forward <TT>tar</TT>, and the best is Lone Star Software’s Lone-Tar.</P>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">What Is Lone-Tar?</FONT></H3>
<P>Lone-Tar can best be thought of as a super version of <TT>tar</TT>. It provides all the features of <TT>tar</TT>, yet adds some functionality that <TT>tar</TT> lacks. To be very safe, Lone-Tar does not use the standard <TT>tar</TT> utility, although it’s behavior is similar. Lone-Tar is available for a wide variety of UNIX and non-UNIX platforms, and is compatible across them all. You could, for example, use a DOS version of Lone-Tar to back up files to a tape, and then read them into your Linux system.</P>
<P>Like <TT>tar</TT>, Lone-Tar can back up and restore entire filesystems to and from disks, tape, auxiliary hard disks, and other storage media. Lone-Tar goes beyond normal <TT>tar</TT> in that all special files, links (symbolic and otherwise), virtual files, and partitions can be handled as easily as standard files.</P>
<P>Lone-Tar can also allow backups and restores of dual drives with different capacities, which <TT>tar</TT> is not capable of doing easily. Most importantly, Lone-Tar has an excellent error recovery procedure built in that allows recovery of a filesystem or files on a backup medium, even when that medium has developed errors. When <TT>tar</TT> encounters problems with a backup medium, it terminates, effectively ruining the value of that backup set.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>Tip: </B><BR>Lone-Tar sounds pretty handy so far, doesn’t it? Lone-Tar is a commercial product, and Lone Star Software expects to be paid for Lone-Tar, but you can use a free version distributed on several FTP sites for a limited time to try it out. After the trial period you can purchase a license for Lone-Tar if you find it valuable and useful. Along with the commercial version, you’ll also get a well-written manual. For more information on Lone-Tar, contact Lone Star Software at<DL>
<DD>13987 W. Annapolis Ct.
<DD>Mt. Airy, MD 21765
<DD>(800) LONE-TAR
</DL>
<!-- CODE SNIP //-->
<PRE>
cowboy@cactus.com
<A HREF="http://www.cactus.com">http://www.cactus.com</A>
<A HREF="ftp.cactus.com">ftp.cactus.com</A>
</PRE>
<!-- END CODE SNIP //-->
<HR></FONT>
</BLOCKQUOTE>
<H3><A NAME="Heading3"></A><FONT COLOR="#000077">Using Lone-Tar’s Interface</FONT></H3>
<P>Lone-Tar has two interfaces: command-line and menu-driven. The command-line interface is very similar to the <TT>tar</TT> command’s syntax for compatibility’s sake. This way, someone who has been using <TT>tar</TT> for many years and moves to Lone-Tar for the extra capabilities it offers doesn’t have to relearn a whole new command set. As you may have discovered by now, <TT>tar</TT>’s command set is rather uninspiring, awkward, and difficult to master.</P>
<P>It takes years to feel comfortable with <TT>tar</TT>’s command line, so Lone Star Software designed a friendlier menu-driven interface, too. You can use either the command-line or the menu-driven interface to perform all Lone-Tar’s functions, and they work the same. The menu-driven interface is much easier to work with, though, especially if you haven’t mastered <TT>tar</TT>.</P>
<P>You can see the difference between the two interface methods by a quick look at the syntax of Lone-Tar. The syntax, very similar to <TT>tar</TT>’s syntax, looks like this:</P>
<!-- CODE SNIP //-->
<PRE>
lone-tar [MIcCrtTUxPZ] [bdefhklmnpvFEADVR] [tapefile] [block size]
[compression limit] [0-9] [floppy/tape size] files …
</PRE>
<!-- END CODE SNIP //-->
<P>If you are not exactly right with one of the command-line parameters, both <TT>tar</TT> and Lone-Tar will give you pages of error codes and options, as shown in Figure 64.1. You can display this command-line help screen at any time by simply typing this command at the command line:</P>
<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/64-01.jpg',572,367 )"><IMG SRC="images/64-01t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/64-01.jpg',572,367)"><FONT COLOR="#000077"><B>Figure 64.1.</B></FONT></A> The first page of command line help from Lone-Tar.</P>
<!-- CODE SNIP //-->
<PRE>
lone-tar
</PRE>
<!-- END CODE SNIP //-->
<P>The menu-driven interface, on the other hand, is shown in Figure 64.2 and is much more friendly and easier to figure out. Each of the primary menu options leads to another menu, with mnemonic startup commands for each choice.
</P>
<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/64-02.jpg',572,367 )"><IMG SRC="images/64-02t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/64-02.jpg',572,367)"><FONT COLOR="#000077"><B>Figure 64.2.</B></FONT></A> The menu-drive interface from Lone-Tar is much easier and friendlier to use than the command line.</P>
<P>The choice of interface you use is entirely up to you, of course, but if you are not familiar with <TT>tar</TT>’s awkward syntax, you should stick to the menu-driven interface. UNIX veterans may want to stay with the command line interface, but the menu-driven system is much easier to work with and eliminates the chance of typing errors. For most of this chapter, we’ll work with the menu-driven interface.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch63/1004-1006.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="1010-1013.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?