PHPBB Q. (splitting php file)

  • Meron
  • Graduate
  • Graduate
  • Meron
  • Posts: 168

Post 3+ Months Ago

Hi,

I am using a phpBB forum and I want to restore
a back up. I want to upload my back Up.
But it is to big. I tried to gzip it.
But it didn't work. so I want to split it.
How can I do that?? Is it possible to split
a php file. (the file is 5 MB big)

Please help :)

Thank You
  • The Boss
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

I thnbik i got the solution for ya.

1 - upload your backup.sql 's file on your server
2 - upload a file called "retrieve.php" on the same location as backup.sql

this is retrieve.php

Code: [ Select ]
<?php
system("cat backup.sql | mysql -hyourhost -uuser_login -ppassword name_of_your_database");
echo "Done !";
?>
  1. <?php
  2. system("cat backup.sql | mysql -hyourhost -uuser_login -ppassword name_of_your_database");
  3. echo "Done !";
  4. ?>


the "cat" Command used above can be different on your server, check the documentation of your webhosting.

Excute yhe retrieve.php on your server.

When "Done !" appear, you may have your database on your server
  • Meron
  • Graduate
  • Graduate
  • Meron
  • Posts: 168

Post 3+ Months Ago

Hi,

That didn't work.
Where do I Have to upload it??
  • The Boss
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

PERL wrote:
Hi,

That didn't work.
Where do I Have to upload it??


upload it on your server where you can both upload the retrieve.php and the .sql from your previous restore.

I told you to check the documentation regarding the use of the "system" command for your server

regards

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 119 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.