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

📄 227-229.html

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

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Backing Up Data</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=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

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

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

<!--CHAPTER=11//-->

<!--PAGES=227-229//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="225-227.html">Previous</A></TD>

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

<TD><A HREF="229-231.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading4"></A><FONT COLOR="#000077">Planning a Backup Schedule</FONT></H3>

<P>It&#146;s important to come up with a backup schedule that meets your needs and makes it possible to restore recent copies of files. After you decide on a schedule, stick to it.

</P>

<P>The ideal situation is to be able to restore any file at any time. Taken to an extreme, that&#146;s not possible, but you should be able to restore files on a daily basis. To do this, you use a combination of complete and incremental backups. A <I>complete backup</I> is one that contains every file on the system. An <I>incremental backup</I> is one that contains files that have changed since the last backup. Incremental backups can be at different levels&#151;incremental to the last complete backup or incremental to the last incremental backup. It&#146;s convenient to think of backups as occurring at different levels:</P>

<DL>

<DD><B>Level 0:</B> full backup

<DD><B>Level 1:</B> incremental to the last complete backup

<DD><B>Level 2:</B> incremental to the last level 1 backup

</DL>

<P>The following are some sample backup schedules:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Full backup one day, incremental other days</I>.

<CENTER>

<TABLE WIDTH="90%">

<TR>

<TD WIDTH="16%" ALIGN="LEFT">Day 1

<TD WIDTH="84%" ALIGN="LEFT">Level 0, complete backup

<TR>

<TD>Day 2

<TD>Level 1, incremental backup

<TR>

<TD>Day 3

<TD>Level 1, incremental backup

<TR>

<TD>Day 4

<TD>Level 1, incremental backup

<TR>

<TD>Day 5

<TD>Level 1, incremental backup

</TABLE>

</CENTER>

<BR>If you create and save an index of each backup, you should need only one day&#146;s backup to restore an individual file and only two days&#146; backups (that of day 1 and another day) to completely restore the system.

<DD><B>&#149;</B>&nbsp;&nbsp;<I>Full backup once a month, weekly incremental, and daily incremental</I>. (This example is built around Tuesday, but it could be any day of the week.)

<CENTER>

<TABLE WIDTH="90%">

<TR>

<TD WIDTH="30%" ALIGN="LEFT">First Tuesday

<TD WIDTH="70%" ALIGN="LEFT">Level 0, complete backup

<TR>

<TD>Any other Tuesday

<TD>Level 1, incremental backup

<TR>

<TD>Any other day

<TD>Level 2, incremental backup

</TABLE>

</CENTER>

<BR>To restore an individual file under this schedule, you may need the complete backup if the file wasn&#146;t changed during the month, the level 1 backup if the file was changed the previous week but not this week, or the level 2 backup if the file was changed this week. This schedule is more complex than the previous example, but backups take less time per day.

</DL>

<P>You also might want to consider keeping backup files for an extended period, in case you need to restore an older version. A common schedule is to keep one weekly copy of a full backup for four weeks. For periods of longer than four weeks, you might consider keeping a biweekly backup for about three months.

</P>

<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Performing Backups and Restoring Files</FONT></H3>

<P>Several different utilities are available for backing up and restoring files in a Linux system. Some are simple and straightforward; others are more complex. The simple methods have their limitations, however. Choose the one that meets your needs.

</P>

<P>Because backing up and restoring files is very important, a number of available software systems are dedicated to that task. The following sections present two of them:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>tar</TT> is a tape archive utility available on every Linux or UNIX system. This easy-to-use Linux version can use several tapes or disks.

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>cpio</TT> is a general-purpose utility for copying files available on every UNIX system. <TT>cpio</TT> is easy to use and more robust than <TT>tar</TT>, and it can use several tapes or disks.

</DL>

<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Using <I>tar</I>

</FONT></H4>

<P>The UNIX <TT>tar</TT> utility was originally designed to create a tape archive (to copy files or directories to tape and then to extract or restore files from the archive). You can use it to copy to any device. It has the following advantages:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;It&#146;s simple to use.

<DD><B>&#149;</B>&nbsp;&nbsp;It&#146;s reliable and stable.

<DD><B>&#149;</B>&nbsp;&nbsp;Archives can be read on virtually any Linux or UNIX system.

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="225-227.html">Previous</A></TD>

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

<TD><A HREF="229-231.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 + -