Closed
Description
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
Labels
No labels