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