]> git.sur5r.net Git - bacula/docs/blob - docs/manual/critical.tex
14dddf47a0d5440648cd8ccd3a03e6d2c25fccdc
[bacula/docs] / docs / manual / critical.tex
1 %%
2 %%
3
4 \section*{Critical Items to Implement Before Going Production}
5 \label{_ChapterStart32}
6 \index[general]{Production!Critical Items to Implement Before Going }
7 \index[general]{Critical Items to Implement Before Going Production }
8 \addcontentsline{toc}{section}{Critical Items to Implement Before Going
9 Production}
10
11 \subsection*{General}
12 \index[general]{General }
13 \addcontentsline{toc}{subsection}{General}
14
15 We recommend you take your time before implementing a production a Bacula
16 backup system since Bacula is a rather complex program, and if you make a
17 mistake, you may suddenly find that you cannot restore your files in case
18 of a disaster.  This is especially true if you have not previously used a
19 major backup product.
20
21 If you follow the instructions in this chapter, you will have covered most of
22 the major problems that can occur. It goes without saying that if you ever
23 find that we have left out an important point, please inform us, so
24 that we can document it to the benefit of everyone. 
25
26 \label{Critical}
27 \subsection*{Critical Items}
28 \index[general]{Critical Items }
29 \index[general]{Items!Critical }
30 \addcontentsline{toc}{subsection}{Critical Items}
31
32 The following assumes that you have installed Bacula, you more or less
33 understand it, you have at least worked through the tutorial or have
34 equivalent experience, and that you have set up a basic production
35 configuration. If you haven't done the above, please do so and then come back
36 here. The following is a sort of checklist that points with perhaps a brief
37 explanation of why you should do it.  In most cases, you will find the
38 details elsewhere in the manual.  The order is more or less the order you
39 would use in setting up a production system (if you already are in
40 production, use the checklist anyway).
41
42 \begin{itemize}
43 \item Test your tape drive for compatibility with Bacula by using the  test
44    command in the \ilink{btape}{btape} program. 
45 \item Better than doing the above is to walk through the nine steps in the  
46    \ilink{Tape Testing}{_ChapterStart27} chapter of the manual. It 
47    may take you a bit of time, but it will eliminate surprises. 
48 \item Test the end of tape handling of your tape drive by using the
49    fill command in the \ilink{btape}{btape} program.
50 \item If you are using a 2.4 kernel, make sure that /lib/tls is disabled. Bacula
51    does not work with this library. See the second point under 
52    \ilink{ Supported Operating Systems.}{SupportedOSes} 
53 \item Do at least one restore of files. If you backup multiple OS types
54    (Linux, Solaris, HP, MacOS, FreeBSD, Win32, ...),
55    restore files from each system type. The 
56    \ilink{Restoring Files}{_ChapterStart13} chapter shows you how. 
57 \item Write a bootstrap file to a separate system for each backup job.  The
58    Write Bootstrap directive is described in the  
59    \ilink{Director Configuration}{writebootstrap}  chapter of the
60    manual, and more details are available in the  
61    \ilink{Bootstrap File}{_ChapterStart43} chapter. Also, the default
62    bacula-dir.conf comes with a Write Bootstrap directive defined. This  allows
63    you to recover the state of your system as of the last backup.  
64 \item Backup your catalog. An example of this is found in the default 
65    bacula-dir.conf file. The backup script is installed by default and  should
66    handle any database, though you may want to make your own  local
67    modifications.  
68 \item Write a bootstrap file for the catalog. An example of this is found in
69    the default bacula-dir.conf file. This will allow you to quickly restore your
70    catalog in the event it is wiped out -- otherwise it  is many excruciating
71    hours of work.  
72 \item Make a copy of the bacula-dir.conf, bacula-sd.conf, and
73    bacula-fd.conf files that you are using on your server. Put it in a safe
74    place (on another machine) as these files can be difficult to
75    reconstruct if your server dies.
76 \item Make a Bacula Rescue CDROM! See the 
77    \ilink{Disaster Recovery Using a Bacula Rescue
78    CDROM}{_ChapterRescue} chapter. It is trivial to  make such a CDROM,
79    and it can make system recovery in the event of  a lost hard disk infinitely
80    easier. 
81 \item Bacula assumes all filenames are in UTF-8 format. This is important 
82    when saving the filenames to the catalog. For Win32 machine, Bacula will
83    automatically convert from Unicode to UTF-8, but on Unix, Linux, *BSD,
84    and MacOS X machines, you must explicitly ensure that your locale is set
85    properly. Typically this means that the {bf LANG} environment variable
86    must end in {\bf .UTF-8}. An full example is {\bf en\_US.UTF-8}. The
87    exact syntax may vary a bit from OS to OS, and exactly how you define it
88    will also vary.
89 \end{itemize}
90
91 \subsection*{Recommended Items}
92 \index[general]{Items!Recommended }
93 \index[general]{Recommended Items }
94 \addcontentsline{toc}{subsection}{Recommended Items}
95
96 Although these items may not be critical, they are recommended and will help
97 you avoid problems. 
98
99 \begin{itemize}
100 \item Read the \ilink{Quick Start Guide to Bacula}{_ChapterStart37} 
101 \item After installing and experimenting with Bacula, read and work carefully 
102    through the examples in the 
103    \ilink{Tutorial}{_ChapterStart1} chapter  of this manual. 
104 \item Learn what each of the \ilink{Bacula Utility Programs}{_UtilityChapter} 
105    does. 
106 \item Set up reasonable retention periods so that your catalog does not  grow
107    to be too big. See the following three chapters:\\
108    \ilink{Recycling your Volumes}{_ChapterStart22},\\
109    \ilink{Basic Volume Management}{_ChapterStart39},\\
110    \ilink{Using Pools to Manage Volumes}{_ChapterStart11}. 
111 \item Perform a bare metal recovery using the Bacula Rescue CDROM.  See the 
112    \ilink{Disaster Recovery Using a Bacula Rescue CDROM}{_ChapterRescue}
113     chapter. 
114 \end{itemize}
115
116 If you absolutely must implement a system where you write a different 
117 tape each night and take it offsite in the morning. We recommend that you do 
118 several things:
119 \begin{itemize}
120 \item Write a bootstrap file of your backed up data and a bootstrap file
121    of your catalog backup to a floppy disk or a CDROM, and take that with
122    the tape.  If this is not possible, try to write those files to another 
123    computer or offsite computer, or send them as email to a friend. If none
124    of that is possible, at least print the bootstrap files and take that
125    offsite with the tape.  Having the bootstrap files will make recovery
126    much easier.
127 \item It is better not to force Bacula to load a particular tape each day.
128    Instead, let Bacula choose the tape.  If you need to know what tape to
129    mount, you can print a list of recycled and appendable tapes daily, and
130    select any tape from that list.  Bacula may propose a particular tape
131    for use that it considers optimal, but it will accept any valid tape
132    from the correct pool.
133 \end{itemize}