Current time: 11-16-2024, 10:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
DB Backup anpassen (mysqldump)
Author Message
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #2
RE: DB Backup anpassen (mysqldump)
Hi,

du müsstest da in Zeile 339:
Code:
my $db_backupcmd = "$main::cfg{'CMD_MYSQLDUMP'} --add-drop-table --allow-keywords --quote-names -u\'$dbuser\' -p\'$dbpass\' \'$db_name\    ' >\'$db_backup_file\'";

einfach folgendes ergänzen können
Code:
my $db_backupcmd = "$main::cfg{'CMD_MYSQLDUMP'} --add-drop-table --allow-keywords --quote-names -h \'$main::cfg{'DATABASE_HOST'}\' -u\'$dbuser\' -p\'$dbpass\' \'$db_name\    ' >\'$db_backup_file\'";

Das sollte den Datenbank-Host aus /etc/ispcp/ispcp.conf verwenden (hab's allerdings nicht getestet).

Ich denke, es wäre generell sinnvoll, das entsprechend in das Skript aufzunehmen @ Developers, was meint ihr?

Gruß
FeG
07-08-2008 06:48 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DB Backup anpassen (mysqldump) - FeG - 07-08-2008 06:48 PM
RE: DB Backup anpassen (mysqldump) - ZooL - 07-09-2008, 06:31 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)