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