Archive for the ‘WordPress Backup to Dropbox’ Category

WordPress Backup to Dropbox 0.7.1

08 May

I have released a new version of the WordPress Backup to Dropbox plugin that will hopefully alleviate manny of the issues that some users are experiencing.

The biggest problem reported was an issue where the backup starts but does not complete. There is no error, zip archive and no upload to Dropbox which is a rather large issue considering that that is the sole purpose of this plugin!

After some investigation I have concluded that the issue is to do with the amount of memory available to the PHP process and the fact that zipping and uploading large files can be memory intensive.

The original zipping algorithm was inefficient and attempted to zip the entire website in memory before writing to disk. This worked fine in local testing and on my blog because my total website size is around 10 megabytes and the PHP memory limit setting was set to 98 megabytes. So she had plenty of padding to get the job done!

Unfortunately this is not the case for many of you so I have re-engineered the zipping algorithm to take into account PHP’s memory limit setting. Now, when the zip archive is created, it will write to disk when we reach half of the set memory limit. In addition, when it encounters a file that is larger then what can be put into memory it will attempt to increase the memory limit accordingly.

The biggest issue here is the fact that many shared hosting providers, like the one that is hosted on, do not allow you to alter the memory limit PHP ini setting, any attempt to do so will yield an error. This means that for users in the same situation, at this point in time, it is not possible to zip a file that is over half of the PHP memory limit setting. So, on my server with a memory limit of 98 megabytes, the largest individual file that I can add to the archive is approximately 49 megabytes.

This problem also extends to the upload process. The PEAR OAuth upload process uses a significant amount of memory to perform an upload. After a fair bit of testing I came to the conclusion that it requires a PHP memory limit of 2.5 times the size of the file. So, for my server setup, the maximum backup I can upload is approximately 42 megabytes. This is far from optimal and I plan to investigate this further.

For the people who have more control over their servers you might find it more efficient to use the native PHP OAuth extension that can be compiled and installed via PECL. Once installed and activated on your server you can make the plugin use it by changing the class Dropbox_OAuth_PEAR to Dropbox_OAuth_PHP on line 56 of class-dropbox-facade.php. But please note that I have not tested this at all.

So there you have it! Hopefully this release will just work for most of you. Over the coming weeks I plan add the ability to choose which folders you wish to include/exclude in the backup that will also aid in getting the backup size down.

If you haven’t already done so browse to the WordPress plugin directory and install WordPress Backup to Dropbox 0.7.1.

Thanks again for the feedback!

If you notice any more issues or want to request a feature please do so on the BitBucket issue tracker.


WordPress Backup to Dropbox 0.7

02 May

I have just tagged and released WordPress Backup to Dropbox 0.7 that comes with a few tweaks and bug fixes, as well as the ability to backup now.

Here is the change log:

  • Added feature #4: Backup now button
  • Fixed issue #2: Allow legitimately empty tables in backup
  • Fixed some minor look and feel issues
  • Added logo artwork, default i18n POT file and a daily schedule interval


I reckon I am going to do a 1 month release cycle until the plugin gets out of BETA to version 1.0, unless, of course, a critical bug is identified. I don’t plan to add too many more features because I wan’t to keep it as simple as possible. The ability to select directories to exclude will be in version 0.8 on the 1st of June.

Read more about the plugin here.

You can download the plugin here.

If you notice any issues using the plugin please post them to the BitBucket issue tracker here.


WordPress Backup to Dropbox available for testing

26 Mar

I have finally finished a brand new plugin for WordPress called WordPress Backup to Dropbox. A plugin that automatically creates a backup your blog and uploads it to Dropbox.

Read more about it here.

At the moment the plugin is in beta testing stage and is not listed on Dropbox or WordPress.

The plugin is easy very easy to install:

  1. Download
  2. Go to the plugin settings page and upload the file above and activate the plugin
  3. Go to Settings->Backup to Dropbox and set the day and time that you wish your next backup to be performed


I am in the process of getting the plugin listed on Dropbox and in the WordPress marketplace. If you notice any issues please log them here.