mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Updated FAQ and Tips (markdown)
This commit is contained in:
parent
038ec5942e
commit
3fc2da3be2
|
@ -23,7 +23,7 @@ You should use a [data volume container](https://medium.com/@ramangupta/why-dock
|
||||||
|
|
||||||
### What about backups?
|
### What about backups?
|
||||||
|
|
||||||
Assuming that you use `docker-compose` and a data volume container named `maildata`, you can backup your user mails like this:
|
Assuming that you use `docker-compose` and a data volumes, you can backup your user mails like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run --rm -ti \
|
docker run --rm -ti \
|
||||||
|
@ -31,7 +31,7 @@ docker run --rm -ti \
|
||||||
-v mailstate:/var/mail-state \
|
-v mailstate:/var/mail-state \
|
||||||
-v /backup/mail:/backup \
|
-v /backup/mail:/backup \
|
||||||
alpine:3.2 \
|
alpine:3.2 \
|
||||||
tar cvzf /backup/mail-`date +%y%m%d-%H%M%S`.tgz /var/mail /var/mail-state
|
tar czf /backup/mail-`date +%y%m%d-%H%M%S`.tgz /var/mail /var/mail-state
|
||||||
|
|
||||||
find /backup/mail -type f -mtime +30 -exec rm -f {} \;
|
find /backup/mail -type f -mtime +30 -exec rm -f {} \;
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue