The Ultimate Weblog System

Welcome to Geeklog
Friday, July 03 2009 @ 09:32 PM EDT

Install from backup coming to Geeklog

Summer of Code

Geeklog is getting a migration feature with a little help from BigDump.

One of my projects for the 2008 Google Summer of Code is to add the ability for a user to install Geeklog from a previous backup. The goal is to make it simple and easy for you, the user, to migrate and install Geeklog from a backup database file.

From a developer's perspective the import process is straightforward, at least for smaller databases. Larger databases pose a bit of a challenge because the import process will likely surpass PHP's internal max_execution_time limit. We can't use PHP's set_time_limit() function, which is used to temporarily extend a script's allowed execution time, because it only affects the runtime of the PHP script itself and so any database queries or calls to system() would not be extended. Additionally, there is the web server timeout which many users on shared hosting are not able to extend.

Turns out Alexey Ozerov has done the hard work for us. His BigDump.php script will perform a "staggered import of large and very large MySQL Dumps even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped."

For now the migration feature only works with MySQL databases, since Geeklog's databaes backup utility only supports MySQL.

Look for this feature to be included in one of the next Geeklog releases.

Trackback

Trackback URL for this entry: http://www.geeklog.net/trackback.php/install-from-backup

No trackback comments for this entry.
Install from backup coming to Geeklog | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Install from backup coming to Geeklog
Authored by: cordiste on Monday, September 01 2008 @ 05:41 AM EDT
Hi Matt,

Good news, waiting for this feature soon.

::Ben

---
Support and French community [ www.geeklog.fr ]