-->
Previous | Table of Contents | Next |
Its 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.
The ideal situation is to be able to restore any file at any time. Taken to an extreme, thats 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 complete backup is one that contains every file on the system. An incremental backup is one that contains files that have changed since the last backup. Incremental backups can be at different levelsincremental to the last complete backup or incremental to the last incremental backup. Its convenient to think of backups as occurring at different levels:
The following are some sample backup schedules:
Day 1 | Level 0, complete backup |
Day 2 | Level 1, incremental backup |
Day 3 | Level 1, incremental backup |
Day 4 | Level 1, incremental backup |
Day 5 | Level 1, incremental backup |
First Tuesday | Level 0, complete backup |
Any other Tuesday | Level 1, incremental backup |
Any other day | Level 2, incremental backup |
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.
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.
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:
The UNIX tar 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:
Previous | Table of Contents | Next |