Modificato script backup (mongodump con auth)

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-08-17 18:30:45 +02:00
parent 483e138da1
commit 53a3bcb2ee
5 changed files with 19 additions and 6 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ Creation Date: 14/nov/2013
// $dbconn->password = "root";
$database = new stdClass();
$database->dbName = "fdn2";
$database->connectionString = "mongodb://fdn2:p14n3ll1FDN2@localhost/fdn2";
$database->user = "test";
$database->pass = "test";
$database->useAuth = false;
$database->connectionString = "mongodb://".$database->user.":".$database->pass."@localhost/".$database->dbname;
$currentSystem = new stdClass();
$currentSystem->storageBaseDir = "/home"; // Il path con storage ecc in cui mettere immagini, file temporanei ecc