From 796699f0f18fcb778a449d522eb1e4e99acc5970 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Fri, 22 Jan 2016 15:02:25 +0100 Subject: [PATCH] Fixes #39 with a basic backup script --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8bc438f4..7c294b5c 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,16 @@ Volumes allow to: password: auth method: md5 challenge-response +# backups + +Assuming that you use `docker-compose` and a data volume container named `maildata`, you can backup your user mails like this: + + docker run --rm \ + --volumes-from maildata_1 \ + -v "$(pwd)":/backups \ + -ti tvial/docker-mailserver \ + tar cvzf /backups/docker-mailserver-`date +%y%m%d-%H%M%S`.tgz /var/mail + # todo Things to do or to improve are stored on [Github](https://github.com/tomav/docker-mailserver/issues), some open by myself.