HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   ISPc db restore problem (

cassus 4th March 2013 11:30

ISPc db restore problem
I want to restore client db backup

when I click on restore button, a get a notice "Restore of the backup has been started... ", there is a new row in sys_remoteaction, but nothings happen to database itself. ispconfig log is clean too.

backup file is on the right place, manual download and restoration is OK, but restore button doesnt work. where the problem may be?


cassus 4th March 2013 21:52

I figured it out myself. Problem is:

In interface settings, I have database prefix set to "db_". Database backup script then preppend ANOTHER "db_" prefix to backup name, so result is db_db_name.tar.gz. This 2x "_" then confuse the restore script, because it uses for resolve database name this:

$parts = explode('_',$backup['filename']);
$db_name = $parts[1];

so in variable $db_name is "db" and script will fail. Same problem will happen when database name contains "_" .

falko 5th March 2013 14:51

I've added this to our bugtracker, so we will check that.

All times are GMT +2. The time now is 20:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.