mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Fixes #39 with a basic backup script
This commit is contained in:
parent
8518a3c52a
commit
796699f0f1
10
README.md
10
README.md
|
@ -93,6 +93,16 @@ Volumes allow to:
|
|||
password: <username1password>
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue