This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mongoroc_doc [2020/07/06 14:06] acqilc |
mongoroc_doc [2021/07/10 23:21] (current) |
||
---|---|---|---|
Line 56: | Line 56: | ||
==== Backup ==== | ==== Backup ==== | ||
+ | |||
+ | Pour sauvegAarder sur un PC distant | ||
mongodump --forceTableScan --host monPC --port 27017 --username monId --password monPwd --db MaBase --out /data/local/mgbackup17/ | mongodump --forceTableScan --host monPC --port 27017 --username monId --password monPwd --db MaBase --out /data/local/mgbackup17/ | ||
+ | |||
+ | |||
+ | Pour restaurer sur un autre monPC1 | ||
+ | |||
+ | * Installer mongodb sur monPC1 | ||
+ | * creer l'utilisateur monID | ||
+ | * copier le repertoire mgbackup17 | ||
+ | |||
+ | mongorestore mgbackup17/ | ||
+ | |||
+ | et c'est fini. | ||
+ | |||
+ | |||
+ | |||
==== Client ==== | ==== Client ==== | ||