Commit Graph

18 Commits

Author SHA1 Message Date
Antoine Beaupré 6d19544985 fix typo in last commit
See: #1163
2008-10-20 20:16:40 +00:00
Antoine Beaupré c2000c82f3 fix sqlbackup call sequence by retaining backwards compatibilty with
previous script

Closes: #1163
2008-10-20 20:13:21 +00:00
Antoine Beaupré a550bf6067 remove deprecated --all option, put add-locks and lock-tables back into the commandline 2008-07-10 21:54:02 +00:00
Antoine Beaupré 0fb997a962 make commandline actually work 2008-07-10 21:52:52 +00:00
Antoine Beaupré c2039cf504 simplify commandline creation 2008-07-10 21:49:22 +00:00
Antoine Beaupré 0aebaa3c07 fix grammar 2008-07-10 21:41:03 +00:00
Antoine Beaupré 4706995038 port to 0.9.8: mysql information is not in local.sh anymore 2008-07-10 21:40:03 +00:00
Antoine Beaupré a62b9109ed add some of the sqlbackup options to the local.sh global configuration.
note that we discarded some suggestions options:

F_LOG: replaced with syslog
DAEMON: will be considered for inclusion later
VERBOSE/DEBUG: available through command line flags

TYPE_NAME_BACKUP and ALLOW_OVERWRITE_BACKUP are being renamed to
SQLBACKUP_TYPE and SQLBACKUP_OVERWRITE. this is to be more consistent
with the global configurations

See: #1081
2008-07-10 21:18:42 +00:00
Antoine Beaupré 2eb782a9f9 get rid of the F_LOG parameter and rely on syslog for logging if 'daemonized', do not source an extra config file 2008-07-10 21:03:15 +00:00
Antoine Beaupré 01f8197e3b complete rewrite of the sqlbackup.sh script, will be reworked and audited before release
Closes: #1081
2008-07-10 20:59:25 +00:00
Antoine Beaupré 3cbd94f5f6 correctly declare functions, we were missing parenthesis 2008-04-24 16:10:27 +00:00
Antoine Beaupré cf484070de remove a bashism: don't use the function keyword to declare functions,
it's not POSIX.

Note that there might be some other bashisms around, but this is the
only one I am aware of now, so...

Closes: #1122
2008-04-24 15:35:33 +00:00
Antoine Beaupré 099ac1f32f Properly specify the database to backup in the mysql dump script by
reverting a tiny part of [2117].

Closes: #1127
2008-04-24 15:17:07 +00:00
Antoine Beaupré d5a4c72e4a Major redesign of the MySQL backend interface to fix a security issue.
See: #318.

As of now, the MySQL configuration used everywhere by AlternC is not
stored in the main configuration file (/etc/alternc/local.sh) but in a
MySQL configuration file in /etc/alternc/my.cnf, which enables us to
call mysql without exposing the password on the commandline.

The changes here are quite invasive but will allow us to factor out
the MySQL configuration better. See #364.

This includes a partial rewrite of the mysql.sh logic, which is now ran
from the postinst script (and not alternc.install) which will allow us
to actually change the MySQL root user properly. See #601.

This commit was tested like this:

 * clean install on etch (working)
 * upgrade from a clean 0.9.7 (working)
2008-04-13 04:35:19 +00:00
Antoine Beaupré aba66668b4 skip non-existent directories so that misconfigured backups don't break other user's backups 2007-04-06 18:02:22 +00:00
Benjamin Sonntag 4935954567 plantage de sqlbackup du fait des 'mv' qui peuvent echouer et du set -e 2006-05-04 16:59:18 +00:00
Benjamin Sonntag 80c65668a9 plantage de sqlbackup du fait des 'mv' qui peuvent echouer et du set -e 2006-05-04 16:42:14 +00:00
Pierre Gilles Mialon 6ca8255f49 AlternC Plugin are now part of AlternC svn repository\n Migration Phase 2 2006-04-26 12:28:53 +00:00