mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Wrong volume reference when using docker-compose (ref: http://stackoverflow.com/a/39125414)
This commit is contained in:
parent
597d642f8c
commit
830fb9807b
|
@ -26,7 +26,7 @@ You should use a [data volume container](https://medium.com/@ramangupta/why-dock
|
|||
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 \
|
||||
--volume dockermailserver_maildata:/var/mail \
|
||||
-v "$(pwd)":/backups \
|
||||
-ti tvial/docker-mailserver \
|
||||
tar cvzf /backups/docker-mailserver-`date +%y%m%d-%H%M%S`.tgz /var/mail
|
||||
|
|
Loading…
Reference in a new issue