Is there any documentation on how to manually restore Drupal from the tarball?

Comments

dmuth’s picture

Assigned: Unassigned » dmuth
Status: Active » Closed (fixed)

No. I'm pretty bad at writing documentation. :-)

Here's the quick and dirty instructions to do it from a UNIX command line:

1) Untar the tarball into your document_root directory. This will recreate the file structure.

2) Unzip the database file. You'll need to use the gzip program for that.

3) Re-create the database by typing "mysql < database-dump-filename". Depending on your configuration, you may need to supply credentials via parameters to MySQL as necessary.

If you're going to ask why I don't write code to do a restore from the web interface, well... that's kinda complicated. It would involve writing code to run while the underlying files and database are pulled out from underneath of it. It's not easy, and if there's any sort of a problem, the user could be left with an unusable Drupal installation. :-/

-- Doug

joachim’s picture

I'm pretty good at writing documentation.
If you create a handbook page for this module I can help write it (I have documentation editing access)... but as I'm still figuring out how to use this module, I'll have to file a few support requests so I know what to write. :)

I saw there's already an issue about a restore function from within this module... I can see that's going to be pretty convoluted to implement.

dmuth’s picture

Sounds like a plan.

Um, pardon my ignorance, but I've never done that before. How do I create this kind of page. :-)

Thanks,

-- Doug

joachim’s picture

I've created it with just the basics: http://drupal.org/node/142232. It appears under the Contributed Modules section of the handbook: http://drupal.org/handbook/config/contribmodules

There's two more things to do with that node:
- The backup module's project page needs to refer to it, the same way http://drupal.org/project/image has a "Read documentation" link under "Resources". I assume you can do that by editing the project page.
- The path of the new node could do to be changed to http://drupal.org/handbook/modules/backup. I don't have the rights to do that, but I'm going to ask in IRC for a hand with that.

I'll add what you wrote about restoring. After that, expect some support issues, as I can't get backup to work! ;)

dmuth’s picture

Cool! I just updated the project page at http://drupal.org/project/backup to point to your documentation. Thanks for the hookup!

-- Doug

gurukripa’s picture

Title: How to restore? » How to restore Dbase to Local Machine
Version: 5.x-2.x-dev » 5.x-4.x-dev

Hi
I tried with XAMPP first and then with Web-developer Controller from devside.net and failed to import my backed up file.

In both cases my local machine CPU is running 100%.
I have about 269 tables and only 244 get copied..and no further progress....it takes hours..but no progress.

I tried with bigdump.php also..but the CPU cannot take it..100% again..and no progress..

pls help with some suggestions..maybe some sql query lines to do the thing...

i dont know how to use these queries or the command prompt..so u will need to give instructions assuming i am a DUMMY :)

pls help..i really wld like to have a local site on my computer for testing.

thanks