From ab5c1f8f559f7ab69116b38660a0a3e2a5543736 Mon Sep 17 00:00:00 2001 From: Quentin Dupont Date: Tue, 24 Jan 2023 16:29:56 +0100 Subject: [PATCH] Add documentation for restoring backup in Ubuntu --- docs/docs/install/install2.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/install/install2.md b/docs/docs/install/install2.md index 94efa251..c00f20bc 100644 --- a/docs/docs/install/install2.md +++ b/docs/docs/install/install2.md @@ -914,6 +914,14 @@ sudo chmod 755 –R /opt/meshcentral/meshcentral-data/letsencrypt This will allow the server to get and periodically update its Let’s Encrypt certificate. If this is not done, the server will generate an `ACCES: permission denied` exception. +### Restore backup in Ubuntu + +- Stop Meshcentral service `sudo systemctl stop meshcentral.service` +- In your old server, get your backup : meshcentral-data folder, and mongodump-xxxx.archive +- In the new server, replace the actual meshcentral-data with your backup (it will handle your LestEncrypt cert also) +- Restore mongodb : mongorestore --archive=mongodump-xxxx.archive +- Restart meshcentral.service `sudo systemctl start meshcentral.service` + ## Microsoft Azure In this section, we will look installing MeshCentral on Microsoft Azure. Microsoft Azure offers many operating system options and we will be selecting `Ubuntu Server` as our choice. From the Azure portal, we select `Virtual machines` on the left and `Add`.