Skip to content

Added support to back up specified databases only with 'mysqlbackup' #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 27, 2013
Merged

Added support to back up specified databases only with 'mysqlbackup' #244

merged 2 commits into from
Aug 27, 2013

Conversation

cfeskens
Copy link
Contributor

I needed the ability to manage individual database backups separately for a server hosting many databases.

I added a 'backupdatabase' parameter, to mysql::backup, which takes an array of database names and backs up each datbase in sequence to a separate file.

parameter.  Each database is backed up separately to a named file.
@@ -32,6 +33,7 @@
$backupcompress = true,
$backuprotate = 30,
$delete_before_dump = false,
$backupdatabases = false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this [] by default? I am trying to avoid magical type shifting variables as they make validation harder (and I'm guilty of doing this all the time, using a false and then setting things to hashes and arrays)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved now. Thanks for making me do it right.

apenney pushed a commit that referenced this pull request Aug 27, 2013
Added support to back up specified databases only with 'mysqlbackup'
@apenney apenney merged commit 40db3e8 into puppetlabs:master Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants