Author Archives: alonpeer

Migrating Your WordPress MU installation to a New Domain

A guest post by Alon Peer

Daniel Doezema offers a script that helps migrating WordPress to a new domain: http://dan.doezema.com/2010/04/wordpress-domain-change/.

I’ve added Multi Site (MU) support to that script, which includes extra DB updates, and is available for download here: http://github.com/alonpeer/WordPress-Domain-Changer.

Just follow Daniel’s instructions exactly, with the following additions:

  1. When filling out the form with all the website’s information, also check the Multi Site checkbox at the bottom.
  2. After you run the script you must also update your wp-config.php and update the constant DOMAIN_CURRENT_SITE with the new domain.

Notice: My MU version wasn’t tested a lot, so BACKUP ALL YOU DATA before running it. I’d also love to hear your comments and bug reports so I can perfect it.

UPDATE (November 2nd 2010):
A new version was released, which includes better MU detection, bug fixes and better UI. Thanks to Daniel for the help!
Some debugging is still required, hint hint, nudge nudge.

Leave your comments below, or contact me at alon.peer@gmail.com

Dropbox support in Drupal’s Backup and Migrate module

A guest post by Alon Pe’er

Just like any good open source project or feature, it started with a personal wish of mine to see it implemented.

The Backup and Migrate contributed Drupal module is one of the most useful ones out there. And while it has great support for various backup destinations, Dropbox wasn’t one of them. Until now.

Following a request by one of my clients, making me wish I could do it in my own projects as well, I sat down and looked at the module’s API as well as the Dropbox API and available libraries.
I bumped into 2 possible solutions:

Although the dropbox-php provides a full solutions using the Dropbox OAuth protocol, it relies on more than one extensions and packages, and even though I have them available, it’s more than likely that fellow Drupalers won’t have them on their server.
So I went with the simple Dropbox Uploader library that only lets me upload files to Dropbox (all I really need, really).

The patch is available on Drupal.org (for Drupal 6 at the moment).

I’d love to get feedback regarding performance, security etc. Also, if you know the dropbox-php project and want to create an integration with it as well, then I’d love to see it in action.