From 1684db1692c1217e879be43654932d580da5ea29 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 16 Jan 2020 06:44:47 +0200 Subject: [PATCH] Updated Backup (markdown) --- Backup.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Backup.md b/Backup.md index cd1f45d..184f40d 100644 --- a/Backup.md +++ b/Backup.md @@ -10,6 +10,22 @@ Note: Do mongodump/mongorestore only when Wekan is stopped: wekan.wekan (Snap) o ## [Cloud Backup with rclone](https://github.com/wekan/wekan/wiki/Backup#cloud-backup-with-rclone) +## Using Snap Mongo commands on your bash CLI + +Add to your `~/.bashrc` +``` +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu +export PATH="$PATH:/snap/wekan/current/bin" +``` +Then you can backup: +``` +mongodump --port 27019 +``` +And restore: +``` +mongorestore --drop --port 27019 +``` + ## MongoDB shell on Wekan Snap mongoshell.sh