From: vsl Date: Fri, 20 Dec 2002 23:59:52 +0000 (+0000) Subject: Chapter about backups: just started X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=acfb8013ca03c5a965254d06a5472c9ae8b991eb;p=sites%2Fcsbook.git Chapter about backups: just started --- diff --git a/chapters/backups.tex b/chapters/backups.tex new file mode 100644 index 0000000..7ed696d --- /dev/null +++ b/chapters/backups.tex @@ -0,0 +1,73 @@ + +\section{úÁÂÏÔÁ Ï ÓÏÈÒÁÎÎÏÓÔÉ ÄÁÎÎÙÈ} + + äÌÑ ÏÒÇÁÎÉÚÁÃÉÉ ÓÉÓÔÅÍÙ ÓÏÈÒÁÎÅÎÉÑ ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÈ ÄÁÎÎÙÈ +ÔÒÅÂÕÅÔÓÑ ÏÐÒÅÄÅÌÉÔØ: +\begin{itemize} +\item ÓÐÉÓÏË ÓÏÂÓÔ×ÅÎÎÏ ÎÕÖÄÁÀÝÉÈÓÑ × ÒÅÇÕÌÑÒÎÏÍ ÓÏÈÒÁÎÅÎÉÉ ÆÁÊÌÏ× É +ËÁÔÁÌÏÇÏ× +\item ÔÅÈÎÉÞÅÓËÉÅ ×ÏÚÍÏÖÎÏÓÔÉ ×ÙÂÒÁÎÎÙÈ ÄÌÑ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ ÎÏÓÉÔÅÌÅÊ +\item ÐÏÌÎÙÊ ÏÂß£Í ×ÙÂÒÁÎÎÙÈ ÄÌÑ ÓÐÁÓÅÎÉÑ ÄÁÎÎÙÈ É ÓËÏÒÏÓÔØ ÎÁËÏÐÌÅÎÉÑ +ÉÚÍÅÎÅÎÉÊ × ÎÉÈ +\end{itemize} + + òÁÓÓÍÏÔÒÉÍ ÐÒÏÓÔÏÊ ÐÒÉÍÅÒ --- Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÅÓÔØ cvs--ÒÅÐÏÚÉÔÏÒÉÊ, ÇÄÅ ÏÎ +ÈÒÁÎÉÔ Ó×ÏÉ ÔÅËÓÔÏ×ÙÅ ÄÏËÕÍÅÎÔÙ É ÆÁÊÌÙ ËÏÎÆÉÇÕÒÁÃÉÉ, ÒÁÓÐÏÌÏÖÅÎÎÙÊ +× {\tt /home/user/cvsroot/}, ÏÂÌÁÓÔØ ÄÌÑ ÚÁËÁÞËÉ ÎÅÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÙÈ +ÆÁÊÌÏ× ÉÚ Internet--Á × {\tt /home/user/downloads/}, ÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÙÊ +ÁÒÈÉ× × {\tt /home/user/archive/}, ÐÏÞÔÏ×ÙÅ ÑÝÉËÉ × {\tt /home/user/mail/}, +É ÄÉÒÅËÔÏÒÉÑ Ó ×ÒÅÍÅÎÎÙÍÉ ÒÁÂÏÞÉÍÉ ÆÁÊÌÁÍÉ {\tt /home/user/work/}. + + ëÁË ×ÉÄÉÍ, ×ÓÅ ÜÔÉ ËÁÔÁÌÏÇÉ ÓÏÄÅÒÖÁÔ ×ÅÓØÍÁ ÒÁÚÎÏÒÏÄÎÕÀ ÉÎÆÏÒÍÁÃÉÀ, +ÔÒÅÂÕÀÝÕÀ ÒÁÚÎÙÈ ÐÏÄÈÏÄÏ× Ë ×ÅÄÅÎÉÀ ÁÒÈÉ×Á ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ. ðÏÐÒÏÂÕÅÍ +×ÙÂÒÁÔØ ÎÁÉÂÏÌÅÅ ÏÐÔÉÍÁÌØÎÕÀ ÔÅÈÎÏÌÏÇÉÀ ÄÌÑ ÄÁÎÎÏÇÏ (×ÅÓØÍÁ ÈÁÒÁËÔÅÒÎÏÇÏ) +ÓÌÕÞÁÑ. äÌÑ ÎÁÞÁÌÁ ÐÅÒÅÞÉÓÌÉÍ ÉÚ×ÅÓÔÎÙÅ ÆÁËÔÙ: + +\begin{enumerate} +\item CVS--ÒÅÐÏÚÉÔÏÒÉÊ ÕÖÅ ÓÁÍ ÐÏ ÓÅÂÅ ÓÏÄÅÒÖÉÔ ×ÓÀ ÉÎÆÏÒÍÁÃÉÀ Ï +ÉÚÍÅÎÅÎÉÑÈ, É ÉÍÅÅÔ ÄÏÓÔÁÔÏÞÎÏ ÍÁÌÙÊ ÒÁÚÍÅÒ. óÌÅÄÏ×ÁÔÅÌØÎÏ, ÎÅÔ +ÎÅÏÂÈÏÄÉÍÏÓÔÉ × ÉÎËÒÅÍÅÎÔÁÌØÎÏÍ backup--Å, É ÎÅÔ ÎÅÏÂÈÏÄÉÍÏÓÔÉ ÈÒÁÎÉÔØ +ÂÏÌØÛÏÅ ÞÉÓÌÏ ÕÓÔÁÒÅ×ÛÉÈ ËÏÐÉÊ --- ×ÓÅÇÄÁ ÄÏÓÔÁÔÏÞÎÏ ÏÄÎÏÊ. +\item ËÁÔÁÌÏÇ Ó ÎÅÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÙÍÉ ÆÁÊÌÁÍÉ ÂÙÓÔÒÏ ÍÅÎÑÅÔÓÑ, É ÆÁÊÌÙ ÉÚ +ÎÅÇÏ ÌÉÂÏ ÕÄÁÌÑÀÔÓÑ ÚÁ ÎÅÎÁÄÏÂÎÏÓÔØÀ, ÌÉÂÏ ÐÅÒÅÈÏÄÑÔ × ÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÕÀ +ÏÂÌÁÓÔØ. +\item ËÁÔÁÌÏÇ Ó ÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÙÍ ÁÒÈÉ×ÏÍ ÉÍÅÅÔ ÂÏÌØÛÏÊ ÒÁÚÍÅÒ, É ×ÓÅ +×ÏÚÍÏÖÎÙÅ ÅÇÏ ÉÚÍÅÎÅÎÉÑ --- ÜÔÏ ÌÉÛØ ÄÏÂÁ×ÌÅÎÉÅ ÎÏ×ÙÈ ÆÁÊÌÏ×. úÄÅÓØ +ÏÐÒÅÄÅÌ£ÎÎÏ ÔÒÅÂÕÅÔÓÑ ÉÎËÒÅÍÅÎÔÁÌØÎÙÊ backup. +\item ÐÏÞÔÏ×ÙÅ ÑÝÉËÉ --- ÚÄÅÓØ ÓÁÍÙÊ ÓÌÏÖÎÙÊ ÓÌÕÞÁÊ. óÁÍÉ ÆÁÊÌÙ ÔÕÔ +ÒÅÇÕÌÑÒÎÏ ÉÚÍÅÎÑÀÔÓÑ, × ÏÓÎÏ×ÎÏÍ ÎÁ ÄÏÐÏÌÎÅÎÉÅ (ÄÏÐÉÓÙ×ÁÎÉÅ × ËÏÎÅÃ), ÉÎÏÇÄÁ +ÕÄÁÌÅÎÉÅ, É ÎÅËÏÔÏÒÙÅ ÉÚÍÅÎÅÎÉÑ × ÚÁÇÏÌÏ×ËÁÈ ÐÉÓÅÍ, ÓÏÄÅÒÖÁÝÉÅ ÉÎÆÏÒÍÁÃÉÀ Ï +ÐÒÏÓÍÏÔÒÅ É ÎÁÌÉÞÉÉ ÏÔ×ÅÔÁ. ïÄÎÁËÏ, ÐÏÄ CVS ÐÏÌØÚÏ×ÁÔÅÌØ ÉÈ ÎÅ ÓÏÄÅÒÖÉÔ --- +ÎÅ ÃÅÌÅÓÏÏÂÒÁÚÎÏ, ÐÒÉ ÔÏÍ, ÞÔÏ ÎÅËÏÔÏÒÁÑ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ ÓÉÓÔÅÍÙ ËÏÎÔÒÏÌÑ +×ÅÒÓÉÊ ÐÒÉ ÓÏÈÒÁÎÅÎÉÉ ÒÅÚÅÒ×ÎÏÊ ËÏÐÉÉ ÎÁÍ ÚÄÅÓØ ÏÐÒÅÄÅÌ£ÎÎÏ ÐÏÔÒÅÂÕÅÔÓÑ. +\item ×ÒÅÍÅÎÎÙÅ ÒÁÂÏÞÉÅ ÆÁÊÌÙ ÐÏ ÓÕÔÉ Ó×ÏÅÊ ÂÌÉÚËÉ Ë ËÁÔÁÌÏÇÕ +ÎÅÓÉÓÔÅÍÁÔÉÚÉÒÏ×ÁÎÎÙÈ ÆÁÊÌÏ×, É ÏÂÒÁÂÁÔÙ×ÁÔØ ÉÈ ÂÕÄÅÍ ÏÄÎÉÍ ÍÅÔÏÄÏÍ. +\end{enumerate} + + ïÃÅÎÉÍ (ÔÏÞÎÅÅ, ÐÒÉÄÕÍÁÅÍ) ÔÅÈÎÉÞÅÓËÉÅ ×ÏÚÍÏÖÎÏÓÔÉ. ÷ÏÚØÍ£Í ÂÏÌÅÅ--ÍÅÎÅÅ +ÐÏÐÕÌÑÒÎÕÀ ÓÉÔÕÁÃÉÀ --- ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÅ ÆÁÊÌÙ ({\tt /home/user/}) +ÒÁÓÐÏÌÏÖÅÎÙ ÎÁ ÂÙÓÔÒÏÍ ÌÏËÁÌØÎÏÍ ÄÉÓËÅ, ËÒÏÍÅ ÔÏÇÏ, ÎÁ ÜÔÏÊ ÖÅ ÍÁÛÉÎÅ ÅÓÔØ +×ÔÏÒÏÊ, ÍÅÄÌÅÎÎÙÊ ÖÅÓÔËÉÊ ÄÉÓË --- ÓÞÉÔÁÅÍ ÅÇÏ ÂÏÌÅÅ ÎÁÄ£ÖÎÙÍ, ÔÁË ËÁË +ÉÓÐÏÌØÚÕÅÔÓÑ ÆÁÊÌÏ×ÁÑ ÓÉÓÔÅÍÁ ext3 c --journal-data, É ÏÎ +ÒÅÁÌÉÚÏ×ÁÎ ËÁË ÓÏÆÔÏ×ÙÊ RAID--ÍÁÓÓÉ× (mirror) ÉÚ Ä×ÕÈ ÏÄÉÎÁËÏ×ÙÈ ÖÅÓÔËÉÈ +ÄÉÓËÏ×. ôÁË ÖÅ ÉÍÅÅÔÓÑ × ÎÁÌÉÞÉÉ ÕÓÔÒÏÊÓÔ×Ï ÚÁÐÉÓÉ CDRW--ÄÉÓËÏ× (ÎÏ ÎÅÔ +ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ UDF). æÉÎÁÎÓÏ×ÙÅ ×ÏÚÍÏÖÎÏÓÔÉ ÎÁÛÅÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ +ÏÇÒÁÎÉÞÅÎÎÙ, ÔÁË ÞÔÏ ÏÎ ÍÏÖÅÔ ÓÅÂÅ ÐÏÚ×ÏÌÉÔØ ×ÙÄÅÌÉÔØ ÐÏÄ ÒÅÚÅÒ×ÎÏÅ +ËÏÐÉÒÏ×ÁÎÉÅ ÌÉÛØ 6 ÂÏÌ×ÁÎÏË. ðÒÏÍÁÒËÉÒÕÅÍ ÉÈ ÚÁÒÁÎÅÅ ËÁË ``Backup disk 1'', +``Backup disk 2'', ..., ``Backup disk 6''. + + âÕÄÅÍ ÓÞÉÔÁÔØ, ÞÔÏ ÎÁ "ÎÁÄ£ÖÎÏÍ" ÄÉÓËÅ ÚÁ×ÅÄÏÍÏ ÅÓÔØ Ó×ÏÂÏÄÎÏÅ +ÐÒÏÓÔÒÁÎÓÔ×Ï, × 4 ÒÁÚÁ ÐÒÅ×ÙÛÁÀÝÅÅ ÏÂߣÍ, ÚÁÎÑÔÙÊ ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÍÉ ÆÁÊÌÁÍÉ, +ÐÏÄÌÅÖÁÝÉÍÉ ÒÅÚÅÒ×ÎÏÍÕ ËÏÐÉÒÏ×ÁÎÉÀ. + + éÔÁË, ÐÒÉÓÔÕÐÉÍ Ë ÐÏÓÔÒÏÅÎÉÀ ÐÏÌÕÁ×ÔÏÍÁÔÉÞÅÓËÏÊ ÓÉÓÔÅÍÙ ×ÅÄÅÎÉÑ ÁÒÈÉ×Á +ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ. õ ÎÁÓ ÂÕÄÅÔ ÔÒÉ ÜÔÁÐÁ: +\begin{itemize} +\item ×ÅÄÅÎÉÅ ÚÅÒËÁÌÁ ÎÁ ÍÅÄÌÅÎÎÏÍ ÄÉÓËÅ +\item ÎÁËÏÐÌÅÎÉÅ ÉÎËÒÅÍÅÎÔÁÌØÎÏÇÏ ÁÒÈÉ×Á ÄÌÑ ÐÏÓÌÅÄÕÀÝÅÊ ÚÁÐÉÓÉ ÎÁ CDRW +\item ÚÁÐÉÓØ ÎÁ CDRW, Ó ÒÏÔÁÃÉÅÊ É ÕÐÌÏÔÎÅÎÉÅÍ ÉÎËÒÅÍÅÎÔÁÌØÎÙÈ ÁÒÈÉ×Ï×. +\end{itemize} + + ðÅÒ×ÙÊ ÜÔÁÐ ÒÅÁÌÉÚÕÅÔÓÑ ×ÅÓØÍÁ ÜÌÅÍÅÎÔÁÒÎÏ, Ó ÐÏÍÏÝØÀ ÕÔÉÌÉÔÙ rsync. + +