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