WordPress Backup to Dropbox 1.4.5

27 Mar

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.

Comments Off

Posted in Uncategorized, WordPress Backup to Dropbox


Introducing WPB2D Simple Restore

13 Feb

Restore your WordPress blog in five simple steps.

Yep, its that easy. As long has you have backed up your blog using the WordPress Backup to Dropbox zip extension you can restore your site in five steps without even installing WordPress.


Note: Pople who do not use the zip extension, never fear, you can still use the WPB2D simple restore, all you need to do is zip up your backup in a new folder within the app folder.

For more information checkout the website: http://wpb2d.com/simple-restore

Oh, and there is a new release: WordPress Backup to Dropbox 1.4.4

This announcement comes with a new version of WPB2D that fixes these issues:

1. It will now attempt to set the memory limit WP_MAX_MEMORY_LIMIT and have a better go at setting the time limit

This is because wont allow the setting to be set to unlimited, but if they fully support WordPress they will allow the wp max limit. In addition to this the plugin will have a better attempt at setting the time limit, starting at 300 seconds (the apache TimeOut directive) and working backwards.

2. Added .dropbox to the ignored files list as Dropbox does not accept it

3. Added retry logic for normal uploads that receive errors

There have been elevated reports of 500 internal server errors in the response from Dropbox. So, in order to be more robust, the plugin now retries 3 times to upload a file when it receives an error.

4. Updated the Dropbox API lib that includes retries for chunked uploads

There has been some great work done by Ben on the Dropbox PHP API that the plugin uses, this is now up-to-date and has a feature that will resume chunked uploads when a 400 error is received.

5. Fixed a minor potential XSS issue when viewing the backup log

Firstly thanks Mahadev Subedi (@blinkms) for the heads up! If a file managed to get onto your sever with javascript in the filename, yes filename, the backup log view was vulnerable to an XSS attack.  Due to the fact that the attacker would actually have to compromise your server in order to pull off the XSS, the odds of someone exploiting the hole is slim to none. Either way, thanks Mahadev for pointing out the issue.

Comments Off

Posted in WordPress Backup to Dropbox


WordPress Backup to Dropbox 1.4.3

31 Jan

This release does not contain any new features to the core of the plugin. However it does fix a whole heap of bugs.

So, whats been fixed?

1. Session timeout and invalid link issues when authorising with Dropbox have been fixed. These errors were very hard to replicate and I only managed to stumble upon them recently, and after a decent amount of testing I reckon I have ironed them out.

2. A few people where getting the error “Token cannot be null”. I found that this was due to servers being fire walled with no connection to the internet. There is no way I can fix that problem but I did add a better error message explaining what is going on.

3. Finally, after a lot of research and testing I managed to get to the bottom of the issue where no files where being uploaded and only directories created. This was due to a major bug in the cURL extension that exists to PHP versions 5.2.16 and lower. After a fair bit of thought I decided that rather then penalise people using up-to-date versions of PHP and revert back to the old Dropbox API lib, I decided to keep moving forward and drop support for PHP < 5.2.16.

What does this mean? Well since PHP 5.2 is no longer supported by the PHP community anyway I have added a message to anyone who attempts to use the plugin with an unsupported version of PHP. If users cant upgrade to a higher version of PHP they can download WPB2D 1.3 that supports PHP < 5.2.16.

Introducing priority IT support

I have decided to reduce the free support channel to the WordPress forum only and introduced a premium extension for Priority IT Support. It will include:

  • 24x7 remote monitoring, analysis and troubleshooting
  • Guaranteed priority response
  • Backup system management
  • Network and back-up support
  • Increase in business efficiency while reducing costs

Giving people the option to contact me directly for a 24 hour response instead of waiting for the community to respond to the WordPress forum.

Purchasing this extension, for only $9, will allow you to log support tickets directly form a WPB2D submenu.

Restore Wizard

I addition to this release, I have been working hard on a restore wizard that can be uploaded to a server and bring you website up with the click of a few buttons. I am almost finished and about to start final testing.

So, hopefully in the coming weeks you will be able to easily restore your website from Dropbox!