Support » Plugin: WP Migrate DB » [Plugin: WP Migrate DB] Add date to filename, support compression, mention wp-config.php

  • Resolved Daedalon


    Thanks Brad and all other contributors for the excellent plugin! I put it into use today and it worked near-perfectly. Glad I bookmarked this earlier when preparing for exactly this sort of a migration need.

    I came across three ways how the plugin can be made better. I believe they’re all comparatively easy to implement.

    1. Add a datetime for the filename, WordPress style. Current filename is ‘subdomain_domaintld-migrate.sql’, and could be ‘subdomain_domaintld-migrate-yyyy-mm-dd.sql’ instead, eg. ‘www_wordpresscom-migrate-2012-07-11.sql’.
    2. Add compression option for the archive. Preferably both gzip and bzip2. I would use bzip2 always to have the minimum file size, but gzip is faster to create and takes less memory and might be the best option on some hosts.
    3. Add a mention in the UI that the user needs to remember to do any required changes to the wp-config.php after the files and this database have been moved. This will save some people time wondering what’s left to do.

Viewing 4 replies - 1 through 4 (of 4 total)
  • According to the release notes, everything else above is included in the new 0.4 version except #3. Good work, Brad, and thanks!

    Funny reading this because I just came to the forum to remove the datetime from the filename. (I’m tracking changes to .sql with GIT and actually want the file overwritten).

    Plugin Author Brad Touesnard


    Sounds like everyone has different preferences when it comes to the filename, which means we should really just add a filter:

    Agreed; the defaults should be the ones most convenient for the majority of users, especially new users, and then there should be an option to adjust them.

    Not sure if a filter is needed here. Having one never hurts, but using filters is beyond the skills of the majority of users and unnecessarily hard to maintain for the rest. The plugin settings screen should come with a field for specifying the filename format.

    The format could be so that any single alphabetic character prefixed with # or any string contained within {} gets interpreted through according to functions. Prefix would be chosen automatically. Examples:


    Both return something like

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Migrate DB] Add date to filename, support compression, mention wp-config.php’ is closed to new replies.