Linux with Operating System Concepts



Download 5,65 Mb.
Pdf ko'rish
bet215/254
Sana22.07.2022
Hajmi5,65 Mb.
#840170
1   ...   211   212   213   214   215   216   217   218   ...   254
Bog'liq
Linux-with-Operating-System-Concepts-Fox-Richard-CRC-Press-2014

security
and saving data for 
archival
purposes.
The next question is whether backups should be 
whole
or 
incremental
. We discussed 
briefly how to perform incremental backups in Chapter 10. It seems like incremental back-
ups are preferable because they will take less time to perform than full backups. But there is 
another advantage to the incremental backup. An incremental backup will take less space 
(say on tape). This would allow you to retain backup information for a lengthier period of 
time than say 1 week.
Consider the following strategy. Once per week, we perform a whole backup of /home. 
This is stored on tape 1. Then, for the next week, we perform incremental daily backups 
FIGURE 14.1 
RAID 5 with some failed blocks.


Maintaining and Troubleshooting Linux

577
stored on tapes 2 and 3. We are making the assumption that incremental backups will not 
require nearly as much storage as a full backup. With this pattern of saving onto tapes, we 
would continue to use an incremental tape for several days before we had to reuse a full 
backup tape. See Table 14.2 that shows in 1 week that we are using only three tapes. We 
must reuse our first tape only in week 3 and tape 1 is not reused until week 4.
What happens if you need to restore from an incremental backup? Here is the drawback 
to incremental backups, and the solution depends on what needs to be restored. Are you 
restoring individual files or the full file system? In the former case, your solution is to scan 
the incremental backups for the most recent version of the file(s) in question. If there are 
multiple files to recover, you may find that you have to restore from more than one tape 
and in fact, you may have to search all the tapes to locate the file(s) to restore. You would 
search these tapes backward from the most recent incremental backup back to the full 
backup. The reason for this is that once you have found the file(s), you can stop.
If you are restoring the entire file system, you will proceed in the opposite order. First, 
you restore the file system from the latest full backup. Then, you will restore individual files 
found from each incremental backup going forward in time. This approach may result in 
your restoring the same file several times, but each time, you will be restoring a newer ver-
sion. Restoration of the full file system may take a good deal more time than performing 
either the full backup or any individual incremental backup.
The final question that we posed originally was how you perform the backup. The answer 
to this question will impact other answers. An easy solution to backing up all of /home is to 
mount a tape drive, writable CD drive or external file system, and perform a tar operation 
on /home resulting in a tar file stored to the mounted drive.
Tar has several benefits over other approaches. For instance, you could potentially run 
tar without unmounting the file system being backed up, leaving it accessible during the 
backup. Tar is also fairly easy to use and can compress its contents during archiving. Tar is 
also capable of incremental backups although it is not as easily controlled as through dump. 
One way to handle an incremental backup is to specify in a separate file, 
filename
, all the 
TABLE 14.2 
Daily Backup Strategy

Download 5,65 Mb.

Do'stlaringiz bilan baham:
1   ...   211   212   213   214   215   216   217   218   ...   254




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish