Added patch to improve RPM building
[matthijs/upstream/backupninja.git] / ChangeLog
1 version 0.9.4 -- unreleased
2     backupninja changes
3          . Fixed bug in toint(), and thus isnow(), which caused it
4            to not work when run from cron.
5          . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
6          . Add admingroup option to configuration to allow a group that can
7            read/write configurations (instead of only allowing root). Checks
8            and complains about group-readable files only when the group differs
9            from the one in the configuration file (default is root as before). 
10            Thanks to Martin Krafft for the patch (Closes: #370396).
11          . When determining which backup actions to make, find now follows
12            symlinks for $configdirectory
13          . Changed order of -s to mail for compatibility
14     handler changes
15         Added tar handler:
16          . create tarballs
17         Added rsnap handler:
18          . rotated rsync snapshops
19          . code from paulv@bikkel.org
20         mysql:
21          . Fixed improper use of $vuserhome (Closes: #351083)
22          . Fixed erroneous removal of tmpfile when it didn't exit
23          . Fixed inversed vsname emptiness check
24          . Fixed su quote usage to be more posixy
25          . Compress for sqldumps now happens in-line to save some disk space (Closes: #370778)
26          . Fixed --defaults-file now as --defaults-extra-file (thanks rhatto)
27         pgsql:
28          . Fixed inversed vsname emptiness check
29          . Fixed su quote usage to be more posixy
30          . Fixed shell expansion, thanks Thomas Kotzian (Closes: #363297)
31          . postgres user UID is now the one from inside the vserver if necessary
32          . Compress now happens in-line to save some disk space (Closes: #370778)
33          . $PGSQLUSER is used instead of hardcoding user 'postgres' (although this is the default) 
34         svn:
35          . Fixed inversed vsname emptiness check
36         rdiff:
37          . Symlink and globbing support enhancement and clarification: for
38            a given include/exclude/vsinclude statement, rdiff handler now
39            support EITHER globbing with '*' OR symlinks in the path.
40          . Fixed improper include/exclude symlink dereference
41          . Removed overzealous vsnames check
42          . Now works if testconnect=no and if $test is not defined.
43         dup:
44          . Symlink and globbing support enhancement and clarification: for
45            a given include/exclude/vsinclude statement, dup handler now
46            support EITHER globbing with '*' OR symlinks in the path.
47          . Removed over zealous vsnames check
48          . Does not pretend anymore that duplicity can work without
49            any passphrase
50          . Support duplicity 0.4.2 (with Debian patches applied; upstream's
51            0.4.3 will integrate them)
52          . Now forbid to (try to) include /.
53         sys:
54          . Many more system checks were added, thanks to Petr Klíma
55         ldap:
56          . Compress now happens in-line to save some disk space (Closes: #370778)
57     lib changes
58         vserver:
59          . init_vservers: fixed Debian bug #351083 (improper readlink syntax)
60          . found_vservers: escaped special grep repetition character +
61          . forced mktemp to use a template with a name to be more compatible with 
62            different versions of mktemp, thanks anarcat
63     ninjahelper changes
64          . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
65          . Fix configdirectory error that forced you to use /etc/backup.d, thanks anarcat
66          . When determining which backup actions to list, find now follows
67            symlinks for $configdirectory
68     changed cron permissions to 644
69     minor documentation fixes
70     improved RPM build process allowing 'make rpm-package' and 'make
71     srpm-package' targets (thanks Robert Napier)
72
73 version 0.9.3 -- February 1st, 2006
74     autotools fixes
75     backupninja changes
76         backupninja.conf
77          . added (commented out) the various default paths to
78            programs such as PGSQLDUMP, so that users can figure
79            out more easily they can customize them
80         code refactor:
81          . now uses vservers lib to initialize vservers support
82     handler changes
83         duplicity, mysql, pgsql, rdiff, svn, sys: start to use (at different
84            degrees) new lib/vserver functionality
85         mysql:
86          . fixed no user defaults file processing
87         duplicity:
88          . fixed (again...) globbing in include and exclude options (Debian bug
89            #348022, follow-up to #338796)
90          . warn if vsnames or vsinclude is enabled while vservers support is
91            disabled in backupninja.conf
92          . now works when multiple vservers names are given (separated by space)
93            in vsnames config variable
94         rdiff
95          . fixed globbing bug in include, exclude and vsinclude options
96          . it's now possible to choose exactly which vservers should be
97            backed-up, as it already was with duplicity handler, with the
98            "vsnames" configuration setting
99     ninjahelper changes
100         rdiff.helper:
101          . fixed errors in create remote dir
102          . code formatting cleanup (three spaces indent)
103          . fixed bug which caused only first include/exclude dir to
104            have "include = "
105          . fixed globbing bug with exclude
106         ninjahelper:
107          . now reports error if the helper script has a syntax error or bombs out.
108          . code formatting cleanup (three spaces indent)
109     lib changes
110         vserver:
111          . init_vservers: improved VROOTDIR detection
112          . init_vservers: test in a stricter way the real vservers availability
113          . init_vservers: canonicalize VROOTDIR (since duplicity et al.
114            don't follow symlinks)
115          . init_vservers: warn if vservers are enabled but no vserver is found
116          . new function: vservers_exist
117     known bugs:
118         easydialog: 
119          . formDisplay does not return exit status.
120
121 version 0.9.2 -- December 29, 2005
122     backupninja changes
123         fixed broken toint() which caused when "everyday" problems
124         backupninja.conf.5 updated to include "when" and "vservers"
125         code refactor:
126             . moved to lib/ some code that has to be shared between
127               backupninja and ninjahelper
128     handler changes
129         trac:
130             . mkdir subdirectory problem fixed
131         duplicity:
132             . globbing support fixed in include and exclude options 
133             . different signing and encrypting key support added
134             . fixed erroneous comments in example.dup about the way
135               GnuPG-related options are used
136         mysql:
137             . handler vserver bugs fixed and debug output enhanced
138     ninjahelper(s) changes
139         vserver-related functions added to lib/vservers.in
140         added man/ninjahelper.1 man page
141         makecd:
142             . was missing in Makefile.am/.in
143         rdiff-backup:
144             . used to expand '*' in default source directories
145             . the "Cancel" buttons used to have a weird behaviour
146             . updated to include Vserver selection 
147         pgsql:
148             . forbid the user to choose an empty database set 
149             . "Cancel" button now does what it is meant to do
150         mysql:
151             . enhanced for vserver support 
152             . now able to select databases and dump directory
153         duplicity:
154             . new handler added (with Vserver support)
155
156 version 0.9.1 -- November 05 2005
157     rearranged source so that it is relocatable with autotools
158         (thanks to Petr Klíma petr.klima@madeta-group.cz)
159     fixed many bugs in rdiff helper
160     rdiff handler does not require 'label' (for real this time?)
161     added makecd ninjahelper
162         (thanks to Stefani stefani@riseup.net)
163     made ninjahelper create files with mode 600 rather than 000
164     changed subversion handler to use svnadmin hotcopy instead of
165             the unsupported hot-copy.py script, which was moved in Debian
166     update rdiff ninjahelper
167             now detects and auto-install rdiff-backup on the remote 
168             machine if possible, also tests the remote backup directory
169             and offers to create it if it doesn't exist
170
171 version 0.9 -- October 19 2005
172     *** IMPORTANT CHANGE, UPGRADE AT ONCE ***
173      fixed insecure temporary file creation 
174     *****************************************
175     removed erroneous magic file marker in pgsql handler
176     fixed incorrect find positional
177     changed direct grep of /etc/passwd to getent passwd.
178     rdiff helper has much better information on failed ssh attempt
179         (patch from cmccallum@thecsl.org).
180     rdiff handler now supports remote source and local dest. 
181         (patch from cmccallum@thecsl.org).
182     man pages are greatly improved.
183
184 version 0.8 -- September 15 2005
185     added pgsql (PostgreSQL) handler, with vservers support.
186     added vservers support to duplicity handler
187         Note: the configuration is a bit different than the rdiff
188         handler's one, but the default behavior is the same:
189         have a look at example.dup.
190     improved README
191     documented .disabled method.
192     corrected VROOTDIR default value.
193     added ninjahelper to the install instructions.
194     improved rdiff, dup and sys handlers' vservers support
195         prevent vserver-debiantools' $VROOTDIR/ARCHIVES directory
196         to be seen as a vserver
197     changes to sys handler
198         make use of configurable $VSERVERINFO instead of hard-coded vserver-info.
199         fixed dpkg existence test inside vserver.
200         fixed $nodpkg use.
201     changes to pgsql handler
202         now checks if the specified vserver is running.
203         now checks if $PGSQLDUMP/$PGSQLDUMPALL are available where needed.
204         now checks if "postgres" user exists on the host/vserver.
205     changes to ninjahelper
206         check_perms() does not die anymore on group/world readable
207         helper scripts (now consistent with the "helper scripts
208         must not be group or world writable!" error msg).
209     xedit action now tries $EDITOR, then /etc/alternatives/editor,
210         then nano, vim and vi, and aborts if none of these exists.
211     added helper for pgsql handler.
212     rdiff handler now does not require 'label'
213     changes to mysql and svn handlers' vservers support
214         these handlers now check if the source vserver is running
215     added 'ignores' for mysql handler. (thanks Daniel.Bonniot@inria.fr)
216
217 version 0.7 -- July 26 2005
218     added ninjahelper: a dialog based wizard for creating backupninja configs.
219     considerably improved and changed the log file output.
220     you can now disable actions with .disabled (this is new preferred method).
221     added makecd handler and example.makecd for backing up to cd/dvd (thanks stef).
222     fixed bug when specifying multiple 'when' options.
223
224 version 0.6 -- June 16 2005
225     ldap handler has new options: backup method to use (ldapsearch or
226         slapcat), restart, passwordfile and binddn. Default backup method
227         is set to ldapsearch as this is safer
228     ******************************************************************
229     NOTE: to get the previous default behavior with the ldap handler, 
230     you must set "method = slapcat". The new default is ldapsearch.
231     ******************************************************************
232     implemented fix so that the main script will echo fatal errors rather
233         than being silent about them, this means an error message every hour
234         if there is a major configuration problem (not a handler problem)
235     added vserver support to main script and to the handlers: mysql, svn, sys, rdiff
236     changes to duplicity handler (thanks intrigeri!):
237         "keep = yes" now disables file cleaning on desthost
238         added "sign" option for backups signing
239         added "encryptkey" option to specify the gpg key to use
240         split config into [source], [gpg] and [dest] sections
241         added "nicelevel" option
242         added "testconnect" option
243         added "sshoptions" option (will be passed to ssh/scp)
244         added "bandwidthlimit" option
245     example.dup example config file for duplicity handler 
246     added trac (http://trac.edgewall.com/) environment handler (thanks Charles Lepple!)
247     added configfile option to mysql handler
248         the default is /etc/mysql/debian.cnf. with this, 
249         sqldump doesn't need dbusername. (hotcopy still does).
250     fixed bug in mysql handler which caused some passwords to not work.
251         (.my.cnf files now have double quotes around password)
252     can now pass options to hwinfo and sfdisk in sys handler.
253
254 version 0.5 -- April 12 2005
255     rdiff handler works when remote sshd has a banner
256     rdiff handler supports local dest 
257     logfile is created if it doesn't exist
258     added "when = hourly" 
259     added optional 'nicelevel' to rdiff handler
260     fixed bug where actions were not run in numeric order.
261     improved 'when' parsing.
262
263 version 0.4.4 -- March 18 2005
264     results of handlers are now read line by line. 
265     changes to rdiff handler: added "options", and "keep" is
266         not necessarily days now (ie, it will pass straight through to
267         rdiff-backup if the keep has a unit on it, otherwise it adds the 'D').
268     added dup handler (still pretty beta)
269     added maildir handler (very specialized handler)
270     added --run option (runs the specified action file)
271     improved sys handler, now uses hwinfo
272     added subversion hotbackup handler, svn. 
273     added PATH to cron.d file, which fixes file not found errors.
274
275 version 0.4.2 -- Jan 6 2005
276     fixed bug which caused a report email to be sent even if no actions were run.
277     fixed bug where multiple handler status messages were ignored
278     added status in the subject line of report emails
279
280 version 0.4.1 -- Jan 3 2005
281     added $usecolors and now more conservative about when colors are echoed.
282     fixed major bug, 'when' actually works now.
283     replaced debug function with debug, info, warning, error, fatal.
284     added --now option to force all actions to be performed now.
285     
286 version 0.4 -- Dec 26 2004
287     added "when" option, so that all configs can specify when
288         they are to be run.
289     added reportsuccess and reportwarning config options
290     added .sys handler (hardware, packages, partitions).
291
292 version 0.3.4 -- Dec 8 2004
293     fixed numerical variable quoting compatibility with older wc    
294     fixed stderr redirect bug
295     some comments in example.rdiff
296
297 version 0.3.3 -- Nov 10 2004
298     '*' (asterisk) works now in rdiff config files
299     works now with gawk as well as mawk
300     many bug fixes to ldap handler
301     paths to helper scripts can be configured in global config
302     does not require /usr/bin/stat
303
304 version 0.3.2 -- Sept 29 2004
305     handler scripts are no longer executable (to comply with debian policy)
306     handler error and warning messages are sent with the notify email
307
308 version 0.3.1 -- Sept 5 2004
309     added ldap handler
310     moved sh support to a handler script
311     add test mode, where no action is taken.
312     added --help
313     force only root can read /etc/backup.d/*
314     fixed missing equals symbols in example.rdiff
315     changed backupninja executable to be /usr/sbin rather than /usr/bin
316     
317 version 0.3 -- Oct 20 2004
318     ** IMPORTANT ** all config files are now ini style, not apache style
319     rewrote all scripts in bash for portability
320     added drop-in backupninja lib directory (/usr/share/backupninja)
321     all scripts are now run as root
322
323 version 0.2 -- Oct 14 2004
324     move distribution folder ./cron.d to ./etc/cron.d
325     fixed bug: removed printr of excludes (!)
326     added support for changing the user/group in rdiff sources.
327     added support for .mysql config files.
328     
329 version 0.1 -- Oct 8 2004
330     initial release 
331