Skip to content

Add option to exclude certain databases #449

Closed
@robrwo

Description

@robrwo

For our purposes, we don't need to backup the mysql, performance_schema or information_schema databases, so would like to exclude them from backups.

We can modify the mysqlbackup.sh.erb template with something like:

mysql -s -r -N -e 'SHOW DATABASES' <% if ! @excludedatabases.empty? %> | grep -v '^\(<% @excludedatabases.join('|') %>)$' <% end %> | while read dbname

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions