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