]> git.sur5r.net Git - bacula/bacula/blob - bacula/ReleaseNotes
9d61aa680a4b555d8ab21954ec726634f5211204
[bacula/bacula] / bacula / ReleaseNotes
1
2           Release Notes for Bacula 1.37.10
3
4   Bacula code: Total files = 414 Total lines = 123,723 (*.h *.c *.in)
5
6
7 Major Changes:
8 - This version has a new DIR <--> SD protocol. Both must be
9   upgraded at the same time.
10 - This version has a new database format that is not compatible
11   with previous databases. The upgrade scripts should work, but
12   they are not yet tested.
13 - SQLite3 support, but it seems to run at 1/2 to 1/4 the speed of
14   SQLite2.
15 - First cut at ANSI labels.
16 - New communications protocol between DIR and SD to reserve 
17   drives. The DIR and SD are no longer compatible with 1.36 or
18   lower versions.
19 - Preliminary Python Event support has been added. See below for
20   configuration and details.
21 - DVD writing support, using parts, and a lot of new directives in
22   the Device resource of the Storage configuration file.
23 - Seven new options keywords in a FileSet resource:
24   ignorecase, fstype, hfsplussupport, wilddir, wildfile, regexdir,
25   and regexfile. See below for details.
26
27 New Directives:
28 - New Run directive in Job resource of DIR. It permits
29   cloning of jobs.  To clone a copy of the current job, use
30      Run = "job-name level=%l since=\"%s\""
31   Note, job-name is normally the same name as the job that
32   is running but there is no restriction on what you put. If you
33   want to start the job by hand and use job overrides such as       
34   storage=xxx, realize that the job will be started with the
35   default storage values not the overrides.  The level=%l guarantees
36   that the chosen level of the job is the same, and the since=... 
37   ensures that the job uses *exactly* the same time/date for incremental
38   and differential jobs. The since=... is ignored when level=Full.
39   A cloned job will not start additional clones, so it is not possible
40   to recurse.
41 - New Options keywords in a FileSet directive:
42   - WildDir xxx
43     Will do a wild card match against directories (files will not
44     be matched).
45   - WildFile xxx
46     Will do a wild card match against files (directories will not
47     be matched).
48   - RegexDir xxx
49     Will do a regular expression match against directories (files
50     will not be matched).
51   - RegexFile xxx
52     Will do a regular expression match against files( directories
53     will not be matched).
54   - IgnoreCase = yes | no
55     Will ignore case in wild card and regular expression matches.
56     This is handy for Windows where filename case is not significant.
57   - FsType = string
58     where string is a filesystem type: ext2, jfs, ntfs, proc,
59     reiserfs, xfs, usbdevfs, sysfs, smbfs, iso9660.  For ext3
60     systems, use ext2.  You may have multiple fstype directives
61     and thus permit multiple filesystem types.  If the type
62     specified on the fstype directive does not match the
63     filesystem for a particular directive, that directory will
64     not be backed up.  This directive can be used to prevent
65     backing up non-local filesystems.
66   - HFS Plus Support = yes | no 
67     If set, Mac OS X resource forks will be saved and restored.
68 - Label Type = ANSI | IBM | Bacula   
69   Implemented in Director Pool resource and in SD Device resource.
70   If it is specified in the SD Device resource, it will take
71   precedence over the value passed from the Director to the SD.
72   IBM is not yet implemented.
73 - Check Labels = yes | no
74   Implemented in the SD Device resource. If you intend to read
75   ANSI or IBM labels, this *must* be set. Even if the volume
76   is not ANSI labeled, you can set this to yes, and Bacula will
77   check the label type.
78 - Scripts Directory = <directory> name.  Defines the directory from 
79   which Bacula scripts will be called for events. In fact, Bacula
80   appends this name to the standard Python list of search directories,
81   so the script could also be in any of the Python system directories.
82 - In FileSet, you can exclude backing up of hardlinks (if you have
83   a lot, it can be very expensive), by using:
84     HardLinks = no
85   in the Options section. Patch supplied by David R Bosso. Thanks.
86 - MaximumPartSize = bytes (SD, Device resource)
87   Defines the maximum part size.
88 - Requires Mount = Yes/No (SD, Device resource)
89   Defines if the device require to be mounted to be read, and if it
90   must be written in a special way. If it set, the following directives 
91   must be defined in the same Device resource:
92   + Mount Point = directory
93     Directory where the device must be mounted. 
94   + Mount Command = name-string
95     Command that must be executed to mount the device. Before the command
96     is executed, %a is replaced with the Archive Device, and %m with the 
97     Mount Point.
98   + Unmount Command = name-string
99     Command that must be executed to unmount the device. Before the 
100     command is executed, %a is replaced with the Archive Device, and 
101     %m with the Mount Point.
102   + Write Part Command = name-string
103     Command that must be executed to write a part to the device. Before
104     the command is executed, %a is replaced with the Archive Device, %m 
105     with the Mount Point, %n with the current part number (0-based), 
106     and %v with the current part filename.
107   + Free Space Command = name-string
108     Command that must be executed to check how much free space is left 
109     on the device. Before the command is executed, %a is replaced with 
110     the Archive Device, %m with the Mount Point, %n with the current part
111     number (0-based), and %v with the current part filename.
112 - Write Part After Job = Yes/No (DIR, Job Resource, and Schedule Resource)
113   If this directive is set to yes (default no), a new part file will be
114   created after the job is finished.
115
116 New Commands:
117 - "python restart" restarts the Python interpreter. Rather brutal, make
118    sure no Python scripts are running. This permits you to change
119    a Python script and get Bacula to use the new script.
120
121 Items to note!!!
122 - You must add --with-python=[DIR] to the configure command line
123   if you want Python support.  Python 2.2 and 2.3 should be automatically
124   detected if in the standard place.
125 - With Python 2.2 version, the link of the Director gets a few linker
126   warnings due to the fact that Python pulls in some old non-secure
127   libraries.
128 - With Python 2.3, there are a few compiler warnings.
129 - You must either create a new catalog database or upgrade your
130   old database (upgrade scripts not yet tested).
131
132 Other Items:
133 - 2 new scripts, dvd-writepart and dvd-freespace, in the scripts directory,
134   which are designed to be used as parameters to Write Part Command and
135   Free Space Command. They need the dvd+rw-tools to be installed
136   (http://fy.chalmers.se/~appro/linux/DVD+RW/).
137 - Part files support: File volumes can now be splitted in multiple
138   files, called "parts".
139 - Python scripting support:
140   A Python script will be called at particular points or conditions
141   in Bacula called Events. The currently defined Events are called:
142
143   StartJob, EndJob, NewVolume
144
145   Where StartJob is called before the RunBeforeJob, EndJob is called 
146   after RunAfterJob, and NewVolume, is called before all other 
147   "methods" of obtaining a new Volume name, when one is needed.
148
149   The Python script of the same name as the Event name (but with a .py) 
150   is called from the Scripts Directory (a directive defined in the
151   Director resource).  Note, both the Filename, and the name of
152   the function in the file must correspond to the Event name.
153
154   Once the Python script gets control, it can have access to Bacula
155   variables by doing:
156
157      import bacula
158
159   The script is called with one argument, typically called j. This
160   argument *must* be passed unchanged to each bacula function. The
161   format of the call is slightly different for reading Bacula
162   variable and for writing bacula variables. See below.
163
164   Bacula variables can be read with:
165
166      bacula.get(j, "Variable-name")
167
168     where j is the argument passed to the function, and Variable-name
169     is on of the following:
170
171      JobId, Client, Pool, Storage, Catalog, MediaType, NumVols, DirName,
172        Level, Type, Job, JobName, JobStatus
173
174    Bacula varibles can be set using Python keyword arguments:
175
176       bacula.set(jcr=j, VolumeName="xyz")
177
178     The two currently implemented writable "variables" are:
179
180     VolumeName and JobReport
181
182    It is possible to submit a Bacula run command with the following:
183
184      bacula.run(j, "run kernsave client=Matou storage=File")
185
186    this function returns the JobId of the job that was started. If
187    there is an error, the return value is zero.
188
189    Example:
190
191 == File EndJob.py ===
192 import bacula
193
194 def EndJob(j):
195     jobid = bacula.get(j, "JobId")
196     client = bacula.get(j, "Client") 
197     bacula.set(jcr=j, JobReport="EndJob output: JobId=%d Client=%s.\n" % (jobid, client))
198     if (jobid < 5) :
199        startid = bacula.run(j, "run kernsave")
200        print "Python started jobid=", startid
201
202     return 1
203 ====
204
205 == File NewVolume.py ===
206 import bacula
207
208 def NewVolume(j):
209     jobid = bacula.get(j, "JobId")
210     print "JobId=", jobid
211     client = bacula.get(j, "Client") 
212     print "Client=" + client
213     numvol = bacula.get(j, "NumVols");
214     print "NumVols=", numvol
215     bacula.set(jcr=j, JobReport="New Volume set for Job.\n") 
216     bacula.set(jcr=j, VolumeName="TestA-001")
217     return 1
218 ====