]> git.sur5r.net Git - bacula/docs/blob - docs/home-page/en/pages/what.php
Update home page
[bacula/docs] / docs / home-page / en / pages / what.php
1 <? require_once("inc/header.php"); ?>
2 <table>
3 <tr>
4         <td class="contentTopic">
5                 What is Bacula?
6         </td>
7 </tr>
8 <tr>
9         <td class="content">
10
11 <b>Bacula</b> is a set of computer programs that permit you (or the
12 system administrator) to manage backup, recovery, and verification of
13 computer data across a network of computers of different kinds. In
14 technical terms, it is a network Client/Server based backup program.
15 Bacula is relatively easy to use and efficient, while offering many
16 advanced storage management features that make it easy to find and
17 recover lost or damaged files. Due to its modular design, Bacula is
18 scalable from small single computer systems to systems consisting of
19 hundreds of computers located over a large network.
20 <h3>Who Needs Bacula?</h3>
21 If you are currently using a program such as <b>tar</b>, <b>dump</b>, or
22 <b>bru</b> to backup your computer data, and you would like a network
23 solution, more flexibility, or catalog services, Bacula will most
24 likely provide the additional features you want. However, if you are
25 new to Unix systems or do not have offsetting experience with a sophisticated
26 backup package, we do not recommend using Bacula as it is
27 much more difficult to setup and use than <b>tar</b> or <b>dump</b>.
28 <p>If you are running <b>Amanda</b> and would like a backup program that
29 can write to multiple volumes (i.e. is not limited by your tape drive
30 capacity), Bacula can most likely fill your needs. In addition,
31 quite a number of our users report that Bacula is simpler to
32 setup and use than other equivalent programs.
33 <p>If you are
34 currently using a sophisticated commercial package such as Legato
35 Networker. ARCserveIT, Arkeia, or PerfectBackup+, you may be interested
36 in Bacula, which provides many of the same features, and is free
37 software available under the GNU Version 2 software license.
38
39 <h3>Bacula Components or Services</h3>
40 Bacula is made up of the following five major components or services:
41 <p style="text-align: center; font-size: small">
42         <img src="images/manual/bacula-applications.png" alt="" width="576" height="734"><br>
43         thanks to Aristedes Maniatis for this graphic and the one below
44 </p>
45 <p>
46 <ul>
47 <li><a name="DirDef"></a>
48     <b>Bacula Director</b> service consists of the program that
49      supervises all the backup, restore, verify and archive operations.
50      The system administrator uses the Bacula Director to schedule
51      backups and to recover files. For more details see the <a
52      href="rel-manual/director.html">Director Services Daemon Design Document</a>.
53      The Director runs as a daemon or a service (i.e. in the background).
54 </li>
55 <li><a name="UADef"></a>
56     <b>Bacula Console</b> services is the program that allows the
57     administrator or user to communicate with the <b>Bacula Director</b>
58     (see above). Currently, the Bacula Console is available in three
59     versions. The first and simplest is to run the Console program in a
60     shell window (i.e. TTY interface). Most system administrators will
61     find this completely adequate. The second version is a GNOME GUI
62     interface that for the moment (23 November 2003) is far from complete,
63     but quite functional as it has most the capabilities of the shell
64     Console. The third version is a wxWidgets GUI with an interactive file
65     restore. It also has most the capabilities of the shell console,
66     allows command completion with tabulation, and gives you instant
67     help about the command you are typing. For more details see the
68     <a href="rel-manual/console.html">Bacula Console Design Document</a>.
69 </li>
70 <li><a name="FDDef"></a>
71     <b>Bacula File</b> services (or Client program) is the software
72     program that is installed on the machine to be backed up. It is
73     specific to the operating system on which it runs and is responsible
74     for providing the file attributes and data when requested by the
75     Director. The File services are also responsible for the file
76     system dependent part of restoring the file attributes and data
77     during a recovery operation. For more details see the <a
78     href="rel-manual/file.html">File Services Daemon Design Document</a>. This
79     program runs as a daemon on the machine to be backed up, and in some
80     of the documentation, the File daemon is referred to as the Client
81     (for example in Bacula's configuration file). In addition to
82     Unix/Linux File daemons, there is a Windows File daemon (normally
83     distributed in binary format). The Windows File daemon runs on
84     all currently known Windows versions (95, 98, Me, NT, 2000, XP).
85 </li>
86 <li><a name="SDDef"></a>
87     <b>Bacula Storage</b> services consist of the software programs that
88     perform the storage and recovery of the file attributes and data to
89     the physical backup media or volumes. In other words, the Storage daemon
90     is responsible for reading and writing your tapes (or other
91     storage media, e.g. files). For more details see the <a
92     href="rel-manual/storage.html">Storage Services Daemon Design Document</a>.
93     The Storage services runs as a daemon on the machine that has the
94     backup device (usually a tape drive).
95 </li>
96 <li><a name="DBDefinition"></a>
97     <b>Catalog</b> services are comprised of the software programs
98     responsible for maintaining the file indexes and volume databases for
99     all files backed up. The Catalog services permit the System
100     Administrator or user to quickly locate and restore any desired
101     file. The Catalog services sets Bacula apart from simple backup
102     programs like tar and bru, because the catalog maintains a record
103     of all Volumes used, all Jobs run, and all Files saved, permitting
104     efficicient restoration and Volume management.
105    Bacula currently supports three different databases, MySQL,
106     PostgreSQL, and SQLite, one of which must be chosen when building
107     <b>Bacula</b>. There also exists an Internal database, but it is no
108     longer supported.
109     <p>
110     The three SQL databases currently supported (MySQL, PostgreSQL or SQLite)
111     provide quite a number of features,
112     including rapid indexing, arbitrary queries, and security. Although
113     we plan to support other major SQL databases, the current
114     Bacula implementation interfaces only to MySQL, PostgreSQL and SQLite.
115     For more details see the <a href="rel-manual/catalog.html">Catalog Services
116     Design Document</a>.
117     <p>The RPMs for MySQL and PostgreSQL ship as part of the Linux RedHat release,
118     or building it from the source is quite easy, see the
119     <a href="rel-manual/mysql.html"> Installing and Configuring MySQL</a> chapter
120     of this document for the details. For more information on MySQL,
121     please see: <a href="http://www.mysql.com">www.mysql.com</a>.
122     Or see the <a href="rel-manual/postgresql.html"> Installing and Configuring
123     PostgreSQL</a> chapter of this document for the details. For more
124     information on PostgreSQL, please see: <a
125     href="http://www.postgresql.org">www.postgresql.org</a>.
126     <p>Configuring and building SQLite is even easier. For the details
127     of configuring SQLite, please see the <a href="rel-manual/sqlite.html">
128     Installing and Configuring SQLite</a> chapter of this document.
129 </li>
130 <li><a name="MonDef"></a>
131     <b>Bacula Monitor</b> services is the program that allows the
132     administrator or user to watch current status of <b>Bacula Directors</b>,
133     <b>Bacula File Daemons</b> and <b>Bacula Storage Daemons</b>
134     (see above). Currently, only a GTK+ version is available, which
135     works with Gnome and KDE (or any window manager that supports the
136     FreeDesktop.org system tray standard).
137 </li>
138 </ul>
139 To perform a successful save or restore, the following four daemons
140 must be configured and running: the Director daemon, the File daemon,
141 the Storage daemon, and MySQL, PostgreSQL or SQLite.
142
143 <h3>Bacula Configuration</h3>
144 In order for Bacula to understand your system, what clients you
145 want backed up, and how, you must create a number of configuration
146 files containing resources (or objects). The following presents an
147 overall picture of this:
148 <p style="text-align: center">
149         <img src="images/manual/bacula-objects.png" alt="" width="576" height="734">
150 </p>
151
152 <h3>Conventions Used in this Document</h3>
153 <b>Bacula</b> is in a state of evolution, and as a consequence,
154 this manual will not always agree with the code. If an
155 item in this manual is preceded by an asterisk (*), it indicates
156 that the particular feature is not implemented. If it is preceded
157 by a plus sign (+), it indicates that the feature may be partially
158 implemented.
159 <p>If you are reading this manual as supplied in a released version
160 of the software, the above paragraph holds true. If you are reading
161 the online version of the manual, <a href="/dev-manual/en/main/index.html">
162 http://www.bacula.org/rel-manual/en/main/index.html</a>, 
163 please bear in mind that this version
164 describes the current version in development (in the SVN) that may
165 contain features not in the released version. Just the same,
166 it generally lags behind the code a bit.
167 <h3>Quick Start</h3>
168 To get Bacula up and running quickly, we recommend that you first
169 scan the Terminology section below, then quickly review the next chapter
170 entitled <a href="rel-manual/state.html">The Current State of Bacula</a>, then the
171 <a href="rel-manual/quickstart.html">Quick Start Guide to Bacula</a>, which will
172 give you a quick overview of getting Bacula running. After
173 which, you should proceed to the
174 chapter on <a href="rel-manual/install.html"> Installing Bacula</a>, then <a
175 href="rel-manual/configure.html">How to Configure Bacula</a>,
176 and finally the chapter on <a href="rel-manual/running.html">
177 Running Bacula</a>.
178
179 <h3>Terminology</h3>
180 To facilitate communication about this project, we provide here
181 the definitions of the terminology that we use.
182 <dl>
183         <dt>Administrator</dt>
184         <dd>The person or persons responsible for administrating the Bacula system.</dd>
185
186         <dt>Backup</dt>
187         <dd>We use the term <b>Backup</b> to refer to a Bacula Job that saves files. </dd>
188
189         <dt>Bootstrap File</dt>
190         <dd>The bootstrap file is an ASCII file
191     containing a compact form of commands that allow Bacula or
192     the stand-alone file extraction utility (<b>bextract</b>) to
193     restore the contents of one or more Volumes, for example, the
194     current state of a system just backed up. With a bootstrap file,
195     Bacula can restore your system without a Catalog. You can
196     create a bootstrap file from a Catalog to extract any file or
197     files you wish.</dd>
198
199         <dt>Catalog</dt>
200         <dd>The Catalog is used to store summary information
201     about the Jobs, Clients, and Files that were backed up and on
202     what Volume or Volumes. The information saved in the Catalog
203     permits the administrator or user to determine what jobs were
204     run, their status as well as the important characteristics
205     of each file that was backed up. The Catalog is an online resource,
206     but does not contain the data for the files backed up. Most of
207     the information stored in the catalog is also stored on the
208     backup volumes (i.e. tapes). Of course, the tapes will also have
209     a copy of the file in addition to the File Attributes (see below).
210     <p>The catalog feature is one part of Bacula that distinguishes
211     it from simple backup and archive programs such as <b>dump</b>
212     and <b>tar</b>.
213     </dd>
214         
215         <dt>Client</dt>
216         <dd>In Bacula's terminology, the word Client
217     refers to the machine being backed up, and it is synonymous
218     with the File services or File daemon, and quite often, we
219     refer to it as the FD. A Client is defined in a configuration
220     file resource. </dd>
221         
222         <dt>Console</dt>
223         <dd>The program that interfaces to the Director allowing
224     the user or system administrator to control Bacula.</dd>
225         
226         <dt>Daemon</dt>
227         <dd>Unix terminology for a program that is always present in
228     the background to carry out a designated task. On Windows systems, as
229     well as some Linux systems, daemons are called <b>Services</b>.</dd>
230         
231         <dt>Directive</dt>
232         <dd>The term directive is used to refer to a statement
233     or a record within a Resource in a configuration file that
234     defines one specific thing. For example, the <b>Name</b> directive
235     defines the name of the Resource.</dd>
236         
237         <dt>Director</dt>
238         <dd>The main Bacula server daemon that schedules and directs all
239     Bacula operations. Occassionally, we refer to the Director as DIR.</dd>
240         
241         <dt>Differential</dt>
242         <dd>A backup that includes all files changed since the last
243     Full save started. Note, other backup programs may define this differently.</dd>
244
245         <dt>File Attributes</dt>
246         <dd>The File Attributes are all the information
247     necessary about a file to identify it and all its properties such as
248     size, creation date, modification date, permissions, etc. Normally, the
249     attributes are handled entirely by Bacula so that the user never
250     needs to be concerned about them. The attributes do not include the
251     file's data.
252
253         <dt>File Daemon</dt>
254         <dd>The daemon running on the client
255     computer to be backed up. This is also referred to as the File
256     services, and sometimes as the Client services or the FD.
257         
258         <dt><a name="FileSetDef"></a> FileSet</dt>
259         <dd>A FileSet is a Resource contained in a configuration
260     file that defines the files to be backed up. It consists
261     of a list of included files or directories, a list of excluded files, and
262     how the file is to be stored (compression, encryption, signatures).
263     For more details, see the
264         <a href="rel-manual/director.html#FileSetResource">FileSet Resource definition</a>
265     in the Director chapter of this document.</dd>
266
267         <dt>Incremental</dt>
268         <dd>A backup that includes all files changed since the
269     last Full, Differential, or Incremental backup started. It is normally
270     specified on the <b>Level</b> directive within the Job resource
271     definition, or in a Schedule resourc. </dd>
272         
273         <dt><a name="JobDef"></a>Job</dt>
274         <dd>A Bacula Job is a configuration resource that defines
275     the work that Bacula must perform to backup or restore a particular
276     Client. It consists of the <b>Type</b> (backup, restore, verify,
277     etc), the <b>Level</b> (full, incremental,...), the <b>FileSet</b>,
278     and <b>Storage</b> the files are to be backed up (Storage device,
279     Media Pool). For more details, see the 
280         <a href="rel-manual/director.html#JobResource">Job Resource definition</a>
281         in the Director chapter of this document. </dd>
282
283         <dt>Monitor</dt>
284         <dd>The program that interfaces to the all the daemons
285     allowing the user or system administrator to monitor Bacula status.</dd>
286         
287         <dt>Resource</dt>
288         <dd>A resource is a part of a configuration file that
289     defines a specific unit of information that is available to Bacula.
290     For example, the <b>Job</b> resource defines all the properties of
291     a specific Job: name, schedule, Volume pool, backup type, backup
292     level, ...</dd>
293         
294         <dt>Restore</dt>
295         <dd>A restore is a configuration resource that
296     describes the operation of recovering a file (lost or damaged) from
297     backup media. It is the inverse of a save, except that in most
298     cases, a restore will normally have a small set of files to restore,
299     while normally a Save backs up all the files on the system. Of
300     course, after a disk crash, Bacula can be called upon to do
301     a full Restore of all files that were on the system. </dd>
302         
303         <dt>Schedule</dt>
304         <dd>A Schedule is a configuration resource that
305      defines when the Bacula Job will be scheduled for
306      execution. To use the Schedule, the Job resource will refer to
307      the name of the Schedule. For more details, see the <a
308      href="rel-manual/director.html#ScheduleResource">Schedule Resource
309      definition</a> in the Director chapter of this document. </dd>
310          
311         <dt>Service</dt>
312         <dd>This is Windows terminology for a <b>daemon</b> -- see
313     above. It is now frequently used in Unix environments as well.</dd>
314         
315         <dt>Storage Coordinates</dt>
316         <dd>The information returned from the
317     Storage Services that uniquely locates a file on a backup medium. It
318     consists of two parts: one part pertains to each file saved, and the
319     other part pertains to the whole Job. Normally, this information is
320     saved in the Catalog so that the user doesn't need specific knowledge
321     of the Storage Coordinates. The Storage Coordinates include the
322     File Attributes (see above) plus the unique location of the information on
323     the backup Volume. </dd>
324         
325         <dt>Storage Daemon</dt>
326         <dd>The Storage daemon, sometimes referred to as
327     the SD, is the code that writes the attributes and data to a storage
328     Volume (usually a tape or disk).</dd>
329         
330         <dt>Session</dt>
331         <dd>Normally refers to the internal conversation between
332     the File daemon and the Storage daemon. The File daemon opens a
333     <b>session</b> with the Storage daemon to save a FileSet, or to restore
334     it. A session has a one to one correspondence to a Bacula Job (see
335     above). </dd>
336         
337         <dt>Verify</dt>
338         <dd>A verify is a job that compares the current file
339     attributes to the attributes that have previously been stored in the
340     Bacula Catalog. This feature can be used for detecting changes to
341     critical system files similar to what <b>Tripwire</b> does. One
342     of the major advantages of using Bacula to do this is that
343     on the machine you want protected such as a server, you can run
344     just the File daemon, and the Director, Storage daemon, and Catalog
345     reside on a different machine. As a consequence, if your server is
346     ever compromised, it is unlikely that your verification database
347     will be tampered with.
348     <p>Verify can also be used to check that the most recent Job
349     data written to a Volume agrees with what is stored in the Catalog
350     (i.e. it compares the file attributes), *or it can check the
351     Volume contents against the original files on disk. </dd>
352         
353         <dt>*Archive</dt>
354         <dd>An Archive operation is done after a Save, and it
355     consists of removing the Volumes on which data is saved from active
356     use. These Volumes are marked as Archived, and many no longer be
357     used to save files. All the files contained on an Archived Volume
358     are removed from the Catalog. NOT YET IMPLEMENTED. </dd>
359         
360         <dt>*Update</dt>
361         <dd>An Update operation causes the files on the remote
362     system to be updated to be the same as the host system. This is
363     equivalent to an <b>rdist</b> capability. NOT YET IMPLEMENTED.
364     </dd>
365
366         <dt>Retention Period</dt>
367         <dd>There are various kinds of retention
368     periods that Bacula recognizes. The most important are the
369     <b>File</b> Retention Period, <b>Job</b> Retention Period, and the
370     <b>Volume</b> Retention Period. Each of these retention periods
371     applies to the time that specific records will be kept in the
372     Catalog database. This should not be confused with the time that
373     the data saved to a Volume is valid. <p>The File Retention Period
374     determines the time that File records are kept in the catalog
375     database. This period is important because the volume of the
376     database File records by far use the most storage space in the
377     database. As a consequence, you must ensure that regular
378     &quot;pruning&quot; of the database file records is done. (See
379     the Console <b>retention</b> command for more details on this
380     subject). <p>The Job Retention Period is the length of time that
381     Job records will be kept in the database. Note, all the File
382     records are tied to the Job that saved those files. The File
383     records can be purged leaving the Job records. In this case,
384     information will be available about the jobs that ran, but not the
385     details of the files that were backed up. Normally, when a Job
386     record is purged, all its File records will also be purged. <p>The
387     Volume Retention Period is the minimum of time that a Volume will be
388     kept before it is reused. Bacula will normally never
389     overwrite a Volume that contains the only backup copy of a file.
390     Under ideal conditions, the Catalog would retain entries for all
391     files backed up for all current Volumes. Once a Volume is
392     overwritten, the files that were backed up on that Volume are
393     automatically removed from the Catalog. However, if there is a very
394     large pool of Volumes or a Volume is never overwritten, the Catalog
395     database may become enormous. To keep the Catalog to a manageable
396     size, the backup information should removed from the Catalog after
397     the defined File Retention Period. Bacula provides the
398     mechanisms for the catalog to be automatically pruned according to
399     the retention periods defined. </dd>
400
401         <dt>Scan</dt>
402         <dd>A Scan operation causes the contents of a Volume or a
403     series of Volumes to be scanned. These Volumes with the information
404     on which files they contain are restored to the Bacula Catalog.
405     Once the information is restored to the Catalog, the files contained
406     on those Volumes may be easily restored. This function is
407     particularly useful if certain Volumes or Jobs have exceeded
408     their retention period and have been pruned or purged from the
409     Catalog. Scanning data from Volumes into the Catalog is done
410     by using the <b>bscan</b> program. See the <a href="rel-manual/progs.html#bscan">
411     bscan section</a> of the Bacula Utilities Chapter of this manual
412     for more details.</dd>
413
414         <dt>Volume</dt>
415         <dd>A Volume is an archive unit, normally a tape or
416     a named disk file where Bacula stores the data from one or more
417     backup jobs. All Bacula Volumes have a software label written to
418     the Volume by Bacula so that it identify what Volume it is really
419     reading. (Normally there should be no confusion with disk files,
420     but with tapes, it is easy to mount the wrong one).</dd>
421 </dl>
422
423 <h3>What Bacula is Not</h3>
424 <b>Bacula</b> is a backup, restore and verification program and is not a
425 complete disaster recovery system in itself, but it can be a key part
426 of one if you plan carefully and follow the instructions included in the <a
427 href="rel-manual/rescue.html"> Disaster Recovery</a> Chapter of this manual.
428 <p>
429 With proper planning, as mentioned in the Disaster Recovery chapter
430 <b>Bacula</b> can be a central component of your disaster recovery
431 system. For example, if you have created an emergency boot disk, a
432 Bacula Rescue disk to save the current partitioning information of your
433 hard disk, and maintain a complete Bacula backup, it is possible to
434 completely recover your system from &quot;bare metal&quot;.
435 <p>
436 If you have used the <b>WriteBootstrap</b> record in your job or some
437 other means to save a valid bootstrap file, you will be able to use it
438 to extract the necessary files (without using the catalog or manually
439 searching for the files to restore).
440
441 <h3>Interactions Between the Bacula Services</h3>
442 The following block diagram shows the typical interactions
443 between the Bacula Services for a backup job. Each block
444 represents in general a separate process (normally a daemon).
445 In general, the Director oversees the flow of information. It also
446 maintains the Catalog.
447 <p style="text-align: center">
448         <img src="images/manual/flow.jpeg" border="0" alt="Interactions between Bacula Services" width="480" height="370">
449 </p>
450         </td>
451 </tr>
452 </table>
453
454 <? require_once("inc/header.php"); ?>