@@ -96,9 +96,9 @@ $config->api->account = $backupSystem->account;
|
||||
$config->api->passphrase = $backupSystem->passphrase;
|
||||
|
||||
// CBS 2
|
||||
$config->cbs = new stdClass();
|
||||
$config->cbs->keyFile = $config->paths->common . "/" . $cbs2->keyfile;
|
||||
$config->cbs->serverPort = $cbs2->serverPort;
|
||||
$config->cbs2 = new stdClass();
|
||||
$config->cbs2->keyFile = $config->paths->common . "/" . $cbs2->keyfile;
|
||||
$config->cbs2->serverPort = $cbs2->serverPort;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ class SendBackupTask extends Task {
|
||||
|
||||
public static function execute(){
|
||||
$config = GlobalVariables::get("config");
|
||||
|
||||
$dbName = GlobalVariables::get("dao")->getDbName();
|
||||
$backDir = $config->paths->backup."/mongoDump";
|
||||
SystemController::shellExec("mongodump","-d $dbName -o $backDir");
|
||||
|
||||
Reference in New Issue
Block a user