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