Prechádzať zdrojové kódy

Changed mysqldump invocation to verbose mode (at least for the duration of the beta) in order to ease the troubleshooting of backup failures.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2448 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 rokov pred
rodič
commit
f51d68ee22
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      setup/backup.class.inc.php

+ 2 - 2
setup/backup.class.inc.php

@@ -139,8 +139,8 @@ class DBBackup
 
 		// Store the results in a temporary file
 		$sTmpFileName = self::EscapeShellArg($sBackupFileName);
-		$sCommand = "$sMySQLDump --opt --default-character-set=utf8 --add-drop-database --host=$sHost --user=$sUser --password=$sPwd --result-file=$sTmpFileName $sDBName $sTables 2>&1";
-		$sCommandDisplay = "$sMySQLDump --opt --default-character-set=utf8 --add-drop-database --host=$sHost --user=xxxxx --password=xxxxx --result-file=$sTmpFileName $sDBName $sTables";
+		$sCommand = "$sMySQLDump --verbose --opt --default-character-set=utf8 --add-drop-database --host=$sHost --user=$sUser --password=$sPwd --result-file=$sTmpFileName $sDBName $sTables 2>&1";
+		$sCommandDisplay = "$sMySQLDump --verbose --opt --default-character-set=utf8 --add-drop-database --host=$sHost --user=xxxxx --password=xxxxx --result-file=$sTmpFileName $sDBName $sTables";
 
 		// Now run the command for real
 		SetupPage::log("Info - Executing command: $sCommandDisplay");