One very welcome and important option of the Backup and Migrate Module is: it truncates all cache tables, search index and other stuff that only bloat the download and often cause problems on import.
Of course the tables to be truncated can be configured.

This would be a welcome addition to this module and make it a valid replacement for Backup and Migrate.

Comments

eigentor created an issue. See original summary.

tanc’s picture

Agreed, this feature would be extremely useful, especially when downloading on bandwidth challenged connections.

swim’s picture

Hey,

it should already flush the cache tables by default.

tanc’s picture

Ah, so whenever a db is downloaded the cache tables are flushed? So there is a performance hit on the site? Worth knowing.

eigentor’s picture

Just checked: Cache tables are indeed flushed when exporting. Great, this is the most important.
I understand you do not want to blow up this module unnessecarily.
So hard to decide what additional features are really essential.
For this issue this would be sensible defaults what tables are flushed but still a multiselect to change that and truncate whatever tables one wants on export.
Routinely in backup_migrate this were (besides the cache tables):
access_log
The search index tables
sessions
and
watchdog.

The backup_migrate module has somehow lost its steam
https://www.drupal.org/node/2607038
https://www.drupal.org/node/189065/commits
hence the increased interest in your module.

swim’s picture

The 8.x-1.x version has been refactored a fair bit, it will make adding additional functionality into the pipe a lot easier. The automatic purging of cache tables has been removed, please see the screenshot attached regarding excluding certain tables.

tanc’s picture

Awesome :)

Will the table's structure still be included or is the whole table excluded?

swim’s picture

Currently this feature will exclude the entire table (structure & data). Created a new issue which will address adding an option to include table structure.

swim’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.