Professional Documents
Culture Documents
Bacula
Network Backup Strategies and Solutions
1. Edition
The information in this book is distributed on an As Is basis, without warranty. While every
precaution has been taken in the preparation of this work, neither the author nor Open Source
Press GmbH shall have any liability to any person or entity with respect to any loss or damage
caused or alleged to be caused directly or indirectly by the information contained in it.
All rights reserved. No part of this work may be reproduced or transmitted in any form or by
any means, electronic or mechanical, including photocopying, recording, or by any information
storage or retrieval system, without the prior written permission of the copyright owner and
the publisher.
Bibliographic information published by the Deutsche Nationalbibliothek
The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available in the Internet at http://dnb.dnb.de.
http://www.opensourcepress.de
Table of Contents
Foreword by Kern Sibbald
19
23
1 Introduction
27
1.1
Baculas architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.1.1
1.1.2
1.1.3
1.1.4
The catalog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.1.5
1.2
1.3
Properties of Bacula. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
1.4
Bacula development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Storz Bacula
Table of Contents
1.5
Chapter overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
1.5.2
1.5.3
2 Installation
2.1
2.2
2.1.2
2.3
2.4
2.5
41
2.3.2
2.3.3
2.3.4
2.4.2
2.4.3
www.opensourcepress.de
Table of Contents
2.6
Bat. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
2.6.2
Web-based interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
3 First steps
79
3.1
3.2
Is Bacula working?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
3.3
3.4
3.2.1
3.2.2
First steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
3.3.1
3.3.2
3.4.2
3.4.3
3.4.4
3.4.5
117
Storz Bacula
Table of Contents
4.2
4.1.2
4.1.3
5 Configuring Bacula
127
5.1
5.2
5.3
5.4
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.4.7
www.opensourcepress.de
Table of Contents
5.5
5.6
5.4.8
5.4.9
5.5.2
5.5.3
5.6.2
5.6.3
6 Backup hardware
183
6.1
6.2
6.3
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
Storz Bacula
Table of Contents
6.4
7 Operating Bacula
7.1
7.2
7.1.2
7.1.3
7.1.4
7.1.5
7.2.2
7.2.3
7.2.4
Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
7.2.5
Other. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
8 Advanced applications
8.1
223
271
8.1.2
8.1.3
8.1.4
www.opensourcepress.de
10
Table of Contents
8.2
8.3
8.4
8.1.5
8.1.6
8.1.7
Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
8.1.8
8.1.9
Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
8.2.2
8.3.2
8.4.2
8.4.3
9 Advanced configuration
9.1
325
9.1.2
9.1.3
Storz Bacula
11
Table of Contents
9.2
9.3
9.2.2
9.2.3
9.2.4
9.2.5
9.2.6
9.3.2
9.4
9.5
9.6
9.5.1
9.5.2
9.5.3
9.5.4
9.6.2
9.6.3
www.opensourcepress.de
12
Table of Contents
9.6.4
9.7
9.8
9.9
9.9.2
9.9.3
9.9.4
9.9.5
Storz Bacula
13
Table of Contents
427
445
www.opensourcepress.de
14
Table of Contents
487
495
Storz Bacula
15
Table of Contents
I Appendix
503
A Client installation
505
521
527
16
Table of Contents
Storz Bacula
17
Table of Contents
www.opensourcepress.de
577
18
19
www.opensourcepress.de
20
The choice to release Bacula as Open Source software under the GPL
(General Public License) though it wasnt a design decision was also quite
significant because it created a community of dedicated users who have
consistently sent in bug fixes, contributed code for new features, given
us ideas, and above all reported bugs. This has made Bacula into an extremely robust, feature rich program.
Over the years, these design decisions as well as others proved to be correct one as the project grew and the number of features and Bacula complexity increased without running into design problems.
By 2006, it became clear that Bacula was being used by more and more
corporations, yet its use was less than optimal due to the lack of Bacula
professional services that are required by most large corporations. This
naturally lead to the idea of forming a company composed of Bacula experts to provide the needed services. I also saw it as a way of financing
faster development of Bacula as well as providing a means of ensuring
the continuation of Bacula long term.
My first contact with Philipp Storz was in early 2007 when he requested
to list his company, dassIT, on the bacula.org web site as a provider of
professional services for Bacula. Philipp already had several years of experience with Bacula. Later that year when the founding team of Bacula
Systems was meeting, Philipp joined us in Basel, Switzerland to discuss
ways in which Bacula Systems (not yet formed) could work with independent partners such as dassIT. It was our first contact with a Bacula
partner even before Bacula Systems was created.
Getting the company, Bacula Systems, started was a fairly long process
because it was not easy finding the right people to invest both money and
time in a company where the source code was available for free. However,
by the beginning of 2008 the team was complete and Bacula Systems was
officially incorporated in Switzerland on the first of July 2008 by 8
Storz Bacula
21
founding members, all of whom invested in the company as well as contributed without pay their time to make the company work. Today the
company has grown significantly with over half the founders employed
by Bacula Systems, and the future of the company looks very promising.
It is very difficult to try to predict what Bacula will evolve into during
the next five or ten years, but what seems certain is that Bacula is here
to stay, and that there are a good number of high-end features that are
needed. For example, a large number of large corporations require specific
modules (plugins) to backup and restore Oracle. This is something that
Bacula Systems is currently working on. Other projects include: optimizing
data transfer across communications lines using deduplication; providing
SAN shared storage features; adding backup of Vmware with vSphere
integration; backing up KVM virtual machines; more graphical user interfaces; As long as computer technology keeps up its rapid pace of development there will always will be a need for additional features and capabilities in Bacula.
Not only was Philipp an early adopter of Bacula and the first Bacula Systems reseller, but he is also the first to write and publish a Bacula book.
It is quite appropriate that someone with Philipps experience would do
this. It gives me great pleasure to know that the book will shortly be in
the hands of people who want to become Bacula users or who are already
Bacula users, and I look forward to seeing it on book store shelves.
www.opensourcepress.de
22
Storz Bacula
23
The information in this book and the book appliance were prepared with
the greatest of care. If you discover any errors or inaccuracies, I would
greatly appreciate feedback on the website for this book. There I intend
to gather updates and corrections that will be added to the next edition
if there is one.
I have to admit that I underestimated how much work this book would
be. It was also a lot of fun, and I hope that it will be useful to you in the
administration of your system.
Have fun with this book!
Acknowledgements
Many people helped me in many different ways to create this book. I
would like to thank them at this point:
Kern Sibbald for Bacula.
Marco van Wieringen from ELM Consultancy B.V and Planets Communications B.V. for the know-how on Solaris and for the Solaris packages.
Bruno Friedmann for the collaboration on creating the rpm packages.
Markus Wirtz from Open Source Press for his support and patience.
openSUSE, in particular for the Build Service for creating packages and
for SuSE Studio, which was a great help in creating the VM.
Jochen Schfer for his help on backups of Novell file systems.
Sebastian Lederer for the Mac OS packages.
Stephan Martin for TinyCA2.
http://www.bacula-book.com/
www.opensourcepress.de
24
Frank Ueberschar for the photograph on the cover of the print edition.
My colleagues at dass IT, and of course
my wife Elena and my daughter Vlada Xenia.
Storz Bacula
25
Chapter
Introduction
The website of the Bacula project defines Bacula as follows:
Bacula is a set of open-source computer programs that
permit you (or the system administrator) to manage the
backup, recovery, and verification of computer data
across a network of computers of different kinds. [] In
technical terms, it is an open-source, network-based
backup program.
Kern Sibbald launched this open-source project in 2000 and has been
leading development ever since. Bacula differs from many other free
http://www.bacula.org
Storz Bacula
27
1 Introduction
28
backed up, and file daemon when referring to the Bacula tool. Do not let
this confuse you just remember that file daemon and client are essentially the same.
Storz Bacula
29
1 Introduction
Even though Bacula also supports SQLite, that database is recommended only and explicitly for tests and minimal environments.
www.opensourcepress.de
30
Storz Bacula
31