Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, May 23 2013 @ 06:12 AM EDT

> >

Install from backup coming to Geeklog

Summer of Code
  • Thursday, August 14 2008 @ 12:43 AM EDT
  • Contributed by:
  • Views:
    4,322

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

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:::Ben 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 ]

Post a Comment

Your Name
Create Account
Allowed HTML Tags:
 

Security code
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

What code is in the image?
Enter the bolded text, case sensitive!
Important Stuff
  • Please try to keep posts on topic.
  • Try to reply to other people comments instead of starting new threads.
  • Read other people's messages before posting your own to avoid simply duplicating what has already been said.
  • Use a clear subject that describes what your message is about.
  • Your email address will NOT be made public.