Andrew Smith
fa88a76b4b
Merge pull request #1 from jackbenny/master
...
Add --events option to remove warning when dumping the mysql database
2013-06-18 15:44:40 -07:00
3ab581a0c4
Ooops, delete the ; from the next if statement
2013-06-09 18:06:38 +02:00
3cce79a0a8
Added support for the --events option
2013-06-09 17:40:08 +02:00
Andrew Smith
a1d1f9a26c
It's possible to have a user without a password, if this happens then even passing an empty password to the command line gives an error, so instead, only append the password to the OPTs var if it's set.
2011-06-27 17:00:33 +10:00
Andrew Smith
898874d33c
Don't use %N for the timestamped log file since *BSD (including OS X) doesn't support it, instead use %S that uses the number of seconds.
2011-06-27 15:18:30 +10:00
Andrew Smith
1640ef083e
Initial attempt at an S3 upload post-backup script. It works out what to do based on the same logic as the main script and uploads the files to a named bucket and optional folder.
2011-06-27 14:55:44 +10:00
Andrew Smith
b78be68338
Instead of 'eval'-ing the pre/post commands, source them. This gives the scripts access to all the VARs set in the initial script so that they can access the DB names, etc.
2011-06-27 14:51:33 +10:00
Andrew Smith
827071b9f0
The PATH needs to be set before we try and get the location of the MySQL program, otherwise it might not be found.
2011-06-27 14:48:16 +10:00
Andrew Smith
7b556dc7db
Move the creation of the backup folders to before the attempt to create the log files because if the folder don't exist then no logs will be created on the first run.
2011-06-27 14:08:36 +10:00
Andrew Smith
b18c127e2a
Move the echo's for start/end backup out of the if/else so they're not repeated
2011-06-27 13:45:42 +10:00
Andrew Smith
10b77d1990
Split out the example config into its own file.
...
Use the 'getopts' bash helper rather than rolling our own for parsing the passed in options.
If no config file has been passed in and we can't load the 'master' config (in /etc/automysqlbackup) then exit.
2011-06-27 10:57:12 +10:00
Andrew Smith
2128a64d9f
Initial import of version 2.5-01 from SourceForge.
2011-06-27 10:06:35 +10:00