mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-21 02:19:47 +00:00
yiimp: add system var db & host for backup
This commit is contained in:
parent
15654cce6c
commit
878716ea62
1 changed files with 3 additions and 1 deletions
|
@ -7,10 +7,12 @@ function BackendDoBackup()
|
|||
|
||||
include_once("/etc/yiimp/keys.php");
|
||||
|
||||
$host = YAAMP_DBHOST;
|
||||
$db = YAAMP_DBNAME;
|
||||
$user = YIIMP_MYSQLDUMP_USER;
|
||||
$pass = YIIMP_MYSQLDUMP_PASS;
|
||||
|
||||
system("mysqldump -h yaampdb -u$user -p$pass --skip-extended-insert yaamp | gzip > $filename");
|
||||
system("mysqldump -h $host -u$user -p$pass --skip-extended-insert $db | gzip > $filename");
|
||||
}
|
||||
|
||||
function BackendQuickClean()
|
||||
|
|
Loading…
Add table
Reference in a new issue