WordPress Backup to Dropbox 1.4.5

This release is a small release with a few minor features and some bug fixes that have been plaguing many users.

New Features

Added support for multi site

Although the plugin has always worked with a network setup it now officially supports multisite. The backup menu will now be located in the network admin section and, as in the past, it will backup all of the sites in your network as well as the database.

Added support for running WordPress in its own directory.

WordPress has a feature where you can put it in a sub directory of your www root. The plugin will now backup the contents of your ‘home’ and ‘siteurl’ locations.

Added support for an alternate WP_CONTENT_DIR

You can also define your own WP_CONTENT_DIR that, in the past, was not seen by the plugin. Now the plugin wil backup both the WP_CONTENT_DIR and the ABSPATH separately combining them into a single backup.

Bug Fixes

Fixed an issue where windows servers where uploading with incorrect slashes

With the Dropbox API update Windows users have been experiencing directory separator issues. This was due to a unix backslash being used instead of a cross platform friendly method.

Fixed an issue where directories where being marked as partial when they had no excluded files

Dropbox has a list of files that it will not accept and they form an ignore list. Originally excluded and ignored files where deemed to be the same and where causing the incorrect partial markings, this has now been fixed.

Fixed a memory leak in the exclude file widget

I finally got to the bottom of the memory limit exceeded problems for some users in the exclude widget! This was a doozy but it came down to how PHP serialised SplFileInfo class to a string.Doing this is bad:

$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/some/path));
foreach ($files as $file)
    echo basename($file);

Doing this saved heaps of memory:

$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/some/path));
foreach ($files as $file)
    echo basename($file->getPathname());

Again, thanks everyone for taking the time to post issues and feedback. Without your support this plugin will not be where it is today and continue to grow to be the most reliable backup solution for WordPress.


Tags:
Post Details