ISPc 126.96.36.199. 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?
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;
so in variable $db_name is "db" and script will fail. Same problem will happen when database name contains "_" .
I've added this to our bugtracker, so we will check that.
|All times are GMT +2. The time now is 08:53.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.