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

 

 

 
  1. Alex

    June 29, 2016 at 8:25 am

    cool!

     
  2. Steven Stern (@sds52)

    June 20, 2016 at 10:40 pm

    To add to my earlier comment, I installed on site 1 and did a backup. It create a folder Apps/wpb2d. I renamed that folder to Apps/site1. I then installed on site 2 and started a backup. It did not create a new folder (wpb2d) but overwrote the folder for site 1. As it stands, I can no longer use this plugin. I hope you can find a way to fix it.

     
    • Mikey

      June 29, 2016 at 10:19 am

      Gday Steven,

      To backup multiple sites to the new App Folder you need to check the ‘Store in subfolder option’ and then specify what subfolder you wish to backup to.

      Eg. If you set the value to Site1 it will backup to wpb2d/Site1 (or if you have renamed the app folder ‘AppFolderName/Site1′)

      Cheers,
      Mikey

       
  3. Steven Stern (@sds52)

    June 20, 2016 at 9:57 pm

    I backup a number of sites with WPB2D. How can I have them use separate folders in one Dropbox accouhnt?