node99.html

来自「Linux帮助文档之系统管理员手册」· HTML 代码 · 共 46 行

HTML
46
字号
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<html>
<head>
<title>Compressed backups</title>
<meta NAME="description" CONTENT="Compressed backups">
<meta NAME="keywords" CONTENT="sag">
<meta NAME="resource-type" CONTENT="document">
<meta NAME="distribution" CONTENT="global">
<link REL="STYLESHEET" HREF="sag.css">
</head>
<body LANG="EN">
 <a NAME="tex2html1540" HREF="node100.html"><img WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" ALT="next" SRC="./next_motif.gif"></a> <a NAME="tex2html1538" HREF="node90.html"><img WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" ALT="up" SRC="./up_motif.gif"></a> <a NAME="tex2html1534" HREF="node98.html"><img WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" ALT="previous" SRC="./previous_motif.gif"></a> <a NAME="tex2html1542" HREF="node1.html"><img WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" ALT="contents" SRC="./contents_motif.gif"></a> <a NAME="tex2html1543" HREF="node108.html"><img WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" ALT="index" SRC="./index_motif.gif"></a> <br>
<b> Next:</b> <a NAME="tex2html1541" HREF="node100.html">Keeping Time</a>
<b>Up:</b> <a NAME="tex2html1539" HREF="node90.html">Backups</a>
<b> Previous:</b> <a NAME="tex2html1535" HREF="node98.html">What to back up</a>
<br> <p>
<h1><a NAME="SECTION001070000000000000000">压缩备份</a></h1>
<p>
备份占用大量空间,要花费大量金钱。
为了降低空间需求,备份可以压缩。有几种方法。
有些程序内置支持压缩。例如GNU <tt>tar</tt><a NAME="2744">&nbsp;</a>的<tt>-gzip</tt> (<tt>-z</tt>)选项,通过管道(pipe),
在写到备份介质前,先用	<tt>gzip</tt><a NAME="2746">&nbsp;</a>压缩程序压缩。
<p>
不幸的是,压缩备份可能导致问题。由于压缩工作的原理,如果一个bit错误,可能导致所有其他压缩数据不可用。
有些备份程序内置错误校正,但没有办法处理大量的错误。就是说,如果用GNU <tt>tar</tt><a NAME="2748">&nbsp;</a>压缩备份,
一个单独的错误回导致整个备份丢失。备份必须可靠,这样的压缩方法不好。
<p>
还有一个方法是单独压缩每个文件,这也回导致一个文件的丢失,但不会影响其他文件。丢失的文件可能已经因为什么原因损坏,因此
这种情况比不使用压缩差不了多少。
<tt>afio</tt><a NAME="2750">&nbsp;</a>程序(<tt>cpio</tt><a NAME="2752">&nbsp;</a>的一个变种)可以这样。
<p>
压缩需要时间,which may make the backup program unable to write data fast enough for a tape drive.
<a NAME="tex2html44" HREF="footnode.html#2661"><img ALIGN="BOTTOM" ALT="gif" SRC="./foot_motif.gif" WIDTH="15" HEIGHT="15"></a>
这可以靠输出缓冲来避免(如果备份程序足够智能,可以内置,否则可以通过其他程序),
but even that might not work well enough.
这只会在慢的计算机上是个问题。
<p>
<br> <hr>
<p><address>
<i>Lars Wirzenius <br>
Sun Jun 29 13:31:22 EEST 1997</i>
</address>
</body>
</html>

⌨️ 快捷键说明

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