Menu

#47 How to backup by ignoring some tables but getting their schema?

v1.0 (example)
open
nobody
None
5
2017-03-27
2017-03-27
Jürgen
No

We are using AutoMySQLBackup on a lot of web servers hosting Drupal sites and for the backups we exclude all the cache tables. This is all working really nice but the prohblem is, when we have to restore a database - either to recover from a problem or locally for a developer - the database backup is missing the schema of the ignored tables.

Looking into the full schema files that get created, we run into different problems. First, they can easily be out of date. Second, they contain hard-coded database names. Third, they contain the full schema of every database and not only the one that we're interested in when trying to restore a particular one.

Maybe our setup is incomplete or not ideal?

What would be best for a potential restore scenario is to have the schema of all tables in the dump and the data of all tables that are not ignored.

Is there a way to get that automatically?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.