This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
backward-compability.tex
90 lines (73 loc) · 3.83 KB
/
backward-compability.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
\chapter{Backward Compatibility}
\index[general]{Compatibility:Backward}
\section{Tape Formats}
\index[general]{tape!format}
One of the major goals of Backup softare is to ensure that you can restore
tapes (the word tape should also include disk volumes) that you wrote years
ago. This means that each new version of the software should be able to read old
format tapes. The first problem you will have is to ensure that the
hardware is still working some years down the road, and the second
problem will be to ensure that the media will still be good, then
your OS must be able to interface to the device, and finally Bareos
must be able to recognize old formats. All the problems except the
last are ones that we cannot solve, but by careful planning you can.
Since the very beginning of Bacula (January 2000) until today (2013),
there have been three major Bacula/Bareos tape formats. The second format
was introduced in Bacula version 1.27 in November of 2002.
Bareos has been required to adapt the tape format to avoid potential trademark issues,
but is able to read also the old Bacula tape formats.
Though the tape format is basically fixed, the kinds of data that we can put on the
tapes are extensible, and that is how we added new features
such as ACLs, Win32 data, encrypted data, ... Obviously, an older
version of Bacula/Bareos would not know how to read these newer data streams,
but each newer version of Bareos should know how to read all the
older streams.
% If you want to be 100% sure that you can read old tapes, you
% should:
%
% 1. Try reading old tapes from time to time -- e.g. at least once
% a year.
%
% 2. Keep statically linked copies of every version of Bareos that you use
% in production then if for some reason, we botch up old tape compatibility, you
% can always pull out an old copy of Bareos ...
%
% The second point is probably overkill but if you want to be sure, it may
% save you someday.
\section{Compatibility between Bareos and Bacula}
\index[general]{Compatibility:Bacula}
\index[general]{Bacula}
A Director and a Storage Daemon should (must) always run at the same version.
This is true for Baroes as well as for Bacula.
It is not possible to mix these components.
This is because the protocol between Director and Storage Daemon itself is not versioned (also true for Bareos and Bacula).
If you want to be able to switch back from Bareos to Bacula after using a Bareos director and storage daemon
you have to enable the compatible mode in the Bareos storage daemon (which is currently the default)
to have it write the data in the same format as the Bacula storage daemon.
The Bareos File Daemon is compatible with all version of the Bacula director
when you enable the compatible mode in the config of the file daemon.
Currently the compatible option is on by default but that may change in the future.
To be sure this is enabled you can explicitly set the compatible option
by putting the following in the bareos-fd.conf:
\begin{bconfig}{Compatibility directive}
compatible=true
\end{bconfig}
A Bareos director can only talk to Bacula file daemons of version 2.0 or higher.
\newcommand{\bareoscolor}{\textcolor{blue}{Bareos\ }}
\newcommand{\baculacolor}{\textcolor{red}{Bacula\ }}
These combinations of Bareos and Bacula are know to work together:
\begin{tabular}[h]{|l|l|l|l|}
\hline
\textbf{Director} & \textbf{Storage Daemon} & \textbf{File Daemon} & \textbf{Remarks} \\
\hline
\hline
\bareoscolor & \bareoscolor & \bareoscolor & \\
\hline
\bareoscolor & \bareoscolor & \baculacolor $\ge$ 2.0 & \\
\hline
\baculacolor & \baculacolor & \baculacolor & \\
\hline
\baculacolor & \baculacolor & \bareoscolor (compatibe mode) & \\
\hline
\end{tabular}
Other combinations like Bacula director (dir) with Bareos storage daemon (sd) will not work. However this wasn't even possible with different versions of bacula-dir and bacula-sd.