WordPress Backup to Dropbox 1.3

04 Oct

Don’t have WordPress Backup to Dropbox yet? Check it out now at http://wpb2d.com!

Introducing better logging

Yep thats right, I have overhauled the logging of your backup to get a better insight into what is going on with the vast amount of server configurations, WordPress versions and PHP security settings that exist in the world wide web.

The first thing you will notice is the backup history, within the settings menu, no longer shows verbose information on the backup. Instead, it will now just display the date and time a backup completed. This is because the backup monitor has changed to a backup log and contains a much richer interface and a lot more information on what is happening during the backup.

Here is the new backup log

As you can see the new log now contains an approximation of how complete it is as well as a ist of files that have been uploaded in the log snapshot. The list of uploaded files will only show if one of more have been uploaded to Dropbox. So, bearing that in mind, if you run a backup immediately after your first you should only see your SQL dump files uploaded to Dropbox. Any errors or warnings that are encountered will now show up in this log.

Pro Tip: You can hover over the file name to see when it was last modified on the server.

Executing instant backups

Instant backups can be executed from this screen as per usual. Like scheduled backups, these also use the WordPress quasi cron system which means it could take some time for the backup to kick off. The new backup log will poll every 15 seconds and update the interface.

Please note: You don’t need to stay on this page to execute an instant backup! Just hit ‘Start Backup’, close your laptop and go for a coffee. Your backup will kick off when the next visitor hits your site.

Backup log persistency

You will be able to view the log for the last backup only. Once a new backup starts it will be cleared to make room for the new information.

Accuracy of the percent complete figure

To begin with… not so accurate because its set to 1,500 that is just over the file count of a vanilla WordPress installation. Once you complete your first backup it will be set to the file count of your WordPress installation thus making it become more accurate over time. However, its still only an estimation and should not be taken as gospel.

Whats next

Next thing I will tackle is replacing the PHP Dropbox API with an updated one that takes advantage of Dropbox’s new chunked upload feature. This will greatly reduce the memory footprint required to upload large files to Dropbox. Once I have the new API implemented I am planning to build a restore tool that will allow your to bring your blog back up with the click of a button! Exciting times as I endeavour to get the plugin working for more and more people.

Does the vanilla version of WordPress Backup to Dropbox work flawlessly for you?
Do you want to be able to store multiple zipped versions of your blog?
Or maybe you want to be able to receive an email when your backup completes? 

If you answer yes to any of these questions you should consider purchasing a Premium Extension.
They are super easy to install right from the Premium Extension menu right under the backup log I have just introduced.
Payment is made using PayPal that makes it 100% secure and all extensions come with a 60 day 100% money back guarantee! So you have no reason not to give them a go!

 

 

WordPress Backup to Dropbox 1.2

27 Jul

WordPress Backup to Dropbox 1.2 has been released! And following my usual release pattern it contains a fair few bug fixes as well as a performance feature.

New Feature: Core and plugin SQL dumps are now separate

In this version I have decided to split the WordPress core and plugins into tow separate database dumps to avoid issues with plugins that store way to much information in the database.

When the backup is executed, all the WordPress core tables will be dumped into ‘database-name-backup-core.sql’ and, the plugins into ‘database-name-backup-plugins.sql’. Not only will this mean that there will be two smaller files to upload to Dropbox it will also make it easier to restore you blog if it goes down.

Bug Fixes

Reduced directory nesting to one subfolder and fixed up error message

Now that the plugin uses Dropbox’s App Folder feature and the user can move the ‘wpb2d’ app folder wherever they like there is no need to have directory nesting as a sub folder. This removes complications creating folders in Dropbox and should fix some related issues.

Fixed issues where accounts where being incorrectly unlinked

Updating to the app folder mode added extra security for your Dropbox account but migrating the OAuth tokens meant that everyone needed to re-authenticate with Dropbox. This was achieved by detecting an auth error and removing the old tokens. Unfortunately it was unlinking for some non auth errors too, I have added a couple of new exceptions to the Dropbox API to stop this from happening.

Added singltons for better performance

The singleton pattern stops multiple objects from being created when they dont need to be. Its a negligible performance increase but, ey why not! :-)

Fixed issue #63 Out of memory in settings page

If PHP is running in safe mode, the plugin cannot set the memory limit to an amount needed to do its job. So instead of a fatal error, users will get a nice message in the exlude widget prompting them to increase their memory limit.

Fixed issue #64 UnexpectedValueException

This was happening when PHP had the open base directory setting in affect. Its now fixed.

Premium Extensions

To get around Dropbox’s 150 megabyte file upload limit the zip premium extension has had an update to shard itself into multiple zip files. This will happen if the file gets to 100 megabytes.

You can purchase and install Premium Extensions directly from the plugin in its own menu item. They come with 60 day money back guarantee!

Have Fun!

Well, thats it from me. WordPress 3.4.1 is out and this version is 100% compatible with it! (The last one was too). Please dont hesitate to post any issues you encounter and I will get to them as soon as I can.

http://wpb2d.com

Cheers,

Mikey

 

WordPress Backup to Dropbox 1.1

20 Jun

Its been a few months since the 1.0 release and I have spent some time fixing bugs and adding a major new feature – App Folder Mode!

Dropbox App Folder Mode

For extra security I have decided to migrate to the Dropbox app folder feature. This means that the plugin will only have access to the wpb2d folder within your Dropbox, everything will work excatly the same as previous versions.

When you upgrade to version 1.1 you will need to re-authorise the plugin with Dropbox, once complete, an app folder named wpb2d will be created in the Apps directory. You can move this foder anywhere you like within Dropbox and the plugin will find it.

Updated API

The Dropbox PHP API has had some work done on it over the last couple of months so I have updated it for the plugin that should see some performance and reliability increases. A big thanks goes out to Joe Constant and others who have contributed to Dropbox PHP!

Rate Limiting

There have been reports recently of HTTP 503 erros being raised by the Dropbox API. To alleviate these I have added some rate limiting to the get directory contents and upload file API calls. This means that when an error is encountered the plugin will sleep for 5 seconds before attempting to upload the file again. The error timeout value can be tweaked by setting the BACKUP_TO_DROPBOX_ERROR_TIMEOUT constant in wp-backup-to-dropbox.php.

Other Changes

In addition to the major changes above, I have decided to remove the option to set the local dump directory. This is due to many users setting it to locations that do not have write access. A stock WordPress setup should have write access to the wp-content directory to install plugins so ‘wp-content/backups’ will be the temporary location for SQL and zip output.

Also, Windows users should see some improvements too! :-)

Premium Extension Updates

No major changes have been made to the premium extensions other then a small bugfix in the zip backup extension where the temporary zip files where being included in the zip and bloating its size.

Please Note: After updating to version 1.1 you will need to re-download and install your extensions, don’t worry you get unlimited updates for a year! :-)

And Thats it!

I hope these changes are to your liking and get the plugin working on more and more WordPress setups throughout the world! Dont forget to click the ‘Works’ button if all is well. Oh and a nice little star rating too if you like my work. :-)

If you notice any issues please dont hesitate to get in contact with me!

Cheers,

Mikey