Installation and administration guide
Backup

Backup mongodb

Backup users (all users, not just for SCDOM)

mongodump --db admin --out ./backup/admin  

Make a dump of the databases of the SCDOM system. For each database, perform the operation as below, inserting the name of the database in place of $dbname:

mongodump --db $db-name --out ./backup/backup-$db-name 

Restore

Restore the databases of the SCDOM system. For each database, perform the operation as follows, inserting the name of the given database in place of $dbname

mongorestore --db $db-name ./backup/backup-$db-name 

Recreate the users (all users, not just for SCDOM).

mongorestore --db admin ./backup/admin 

Backup postgre (for keycloak)

Perform the backup

pg_dump -U $user -h $host -F c -v -f $backup_fileName.dump $keycloak_schema

Restore

pg_restore -U $user -h $host -d $schema -v $backup_fileName.dump