Deployment Guide
Manutenzione
Questo capitolo descrive come eseguire un backup del database.
Backup del database
Prima di eettuare un backup del database, interrompere Tomcat Service. Tomcat Service viene identicato come "Dell WMS: Tomcat
Service" e deve essere arrestato da Servizi locali.
Per eettuare il dump dei contenuti del database MongoDB, eseguire il seguente comando:
mongodump --host <mongodb_host> -u stratus –p <db_password> --authenticationDatabase admin --db stratus --out ".
\wmsmongodump"
Per eettuare il dump dei contenuti del database MarioDB, eseguire il seguente comando:
mysqldump --routine –h<mariadb_host> -ustratus –p<password_db> stratus > ".\wmsdump.sql"
Ripristino del database
Interrompere Tomcat Service prima di ripristinare il database. Tomcat Service viene identicato come "Dell WMS: Tomcat Service" e può
essere arrestato da Servizi locali.
Per ripristinare il database MongoDB, è necessario eseguire il seguente comando dalla directory wmsmongodump, la directory padre del
database Stratus.
echo "db.dropDatabase()" | mongo -u stratus -p <db_password> --authenticationDatabase admin --host <db_host> stratus
Per ripristinare il database MarioDB, è necessario eseguire il seguente comando.
mongorestore --host <db_host> -u stratus -p <db_password> --authenticationDatabase admin --db stratus ".\stratus"
6
Manutenzione 27