From ce931d00417430b2d6c8e7ae96219433d47f086b Mon Sep 17 00:00:00 2001 From: Steve Randall Date: Thu, 11 Oct 2018 10:29:31 +0100 Subject: [PATCH] Updated Export Docker Mongo Data (markdown) --- Export-Docker-Mongo-Data.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Export-Docker-Mongo-Data.md b/Export-Docker-Mongo-Data.md index 0ff9a8c..66e8024 100644 --- a/Export-Docker-Mongo-Data.md +++ b/Export-Docker-Mongo-Data.md @@ -144,8 +144,9 @@ https://github.com/wekan/wekan/issues/659 ## Backup and restore scripts Edit these to suit your own requirements - they will delete backups older than 7 days. + Backup Script -'''bash +```bash #!/bin/bash DATE=$(date +%Y-%m-%d-%H-%M) mkdir -p backups/$d @@ -164,10 +165,10 @@ else echo "wekan-db container is not running" exit 1 fi -''' +``` Restore Script -'''bash +```bash #!/bin/bash if [ $# -eq 0 ] then @@ -193,4 +194,4 @@ else exit 1 fi -''' \ No newline at end of file +``` \ No newline at end of file