Imported Upstream version 3.3.2
[debian/amanda] / UPGRADING
1 Upgrading
2 =========
3
4 This file describes the process for ugprading Amanda from a previous
5 version.  In general, the Amanda development team aims for seamless
6 upgrades.  In the rare cases where an upgrade requires other changes
7 on your system, they are described in this file.
8
9 The file is organized from oldest to newest.  Please follow all of
10 the directions, in order, for the range of versions over which you
11 are upgrading.
12
13 See also http://wiki.zmanda.com/index.php/Version_compatibility for notes
14 on the compatibility of various versions of Amanda.
15
16 General Notes
17 -------------
18
19 When upgrading, be careful not to allow the new version of Amanda to find
20 already-installed libraries from the old version.  The safest way to ensure
21 this is to move the old libraries out of the way or remove them before
22 compiling the new version.  There may be more effective ways to do so that are
23 specific to your operating system.
24
25 Upgrading from pre-2.4.0
26 ------------------------
27
28 Amanda 2.4.0 has introduced a major incompatibility in the Amanda protocol.
29 This means that pre-2.4.0 clients won't interoperate with a 2.4.0 server, nor
30 will 2.4.0 clients interoperate with pre-2.4.0 servers. You have to upgrade
31 them all at the same time.
32
33 To ease the upgrade process Amanda has, from release 2.4.0 on, a configure flag
34 (--with-testing) that will cause Amanda to use alternate service names (Amanda-
35 test) instead of the standard ones. This allows you to keep using your old
36 version of Amanda while you test the new one.
37
38 Depending upon the version of Amanda you are upgrading from, Amanda may use a
39 different database library to store the backup information, and the new Amanda
40 may not be able to read the old Amanda database files. In this case, you will
41 want to do something like the following:
42
43 Before the upgrade (using the old version of amadmin):
44
45         # cd /var/AMANDA/CONFIG
46         # amadmin CONFIG export > zzz
47         # mkdir backup
48         # mv curinfo* backup
49         
50
51 and after the upgrade (using the new version of amadmin):
52
53         # cd /var/AMANDA/CONFIG
54         # amadmin CONFIG import < zzz
55         
56
57 and a month :-) after you are happy with the new version:
58
59         # cd /var/AMANDA/CONFIG
60         # rm -rf backup
61         
62
63 After 2.4.0, the structure of the directory holding the index files was changed
64 to have three levels instead of being flat. This greatly reduces the number of
65 files in a given directory, which was a problem for some systems.
66
67 The new layout is:
68
69   [indexdir]/hostname/filesystem/YYYYMMDD_L.gz
70
71 where hostname and filesystem are "sanitized" versions of the names from
72 disklist, i.e. '/' characters are converted to '_' and so on. This new naming
73 convention matches the one used for the text formatted database.
74
75 A script is available to convert the flat directory structure to the new
76 layout:
77
78   http://www.amanda.org/2.4-conv/msg00428.html