From 377bdb390e87868617d45fe2c086a93a168be0fa Mon Sep 17 00:00:00 2001 From: ontheair81 Date: Thu, 21 Apr 2022 00:11:38 +0200 Subject: [PATCH] docs: Update FAQ (#2558) Removed typo "logs". Removed warning that Docker volumes are strongly recommended, as this can lead new users in the wrong direction (bind mounts are now the default). Altering line 8, mentioning the default of bind mounts. --- docs/content/faq.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/content/faq.md b/docs/content/faq.md index bcdb0fbb..5c12d0b3 100644 --- a/docs/content/faq.md +++ b/docs/content/faq.md @@ -5,16 +5,12 @@ title: 'FAQ' ### What kind of database are you using? None! No database is required. Filesystem is the database. -This image is based on config files that can be persisted using Docker volumes, and as such versioned, backed up and so forth. +This image is based on config files that can be persisted using bind mounts (default) or Docker volumes, and as such versioned, backed up and so forth. ### Where are emails stored? Mails are stored in `/var/mail/${domain}/${username}`. Since `v9.0.0` it is possible to add custom `user_attributes` for each accounts to have a different mailbox configuration (See [#1792][github-issue-1792]). -!!! warning - - You should use a [data volume container](https://medium.com/@ramangupta/why-docker-data-containers-are-good-589b3c6c749e#.uxyrp7xpu) for `/var/mail` to persist data. Otherwise, your data may be lost. - ### How to alter the running `docker-mailserver` instance _without_ relaunching the container? `docker-mailserver` aggregates multiple "sub-services", such as Postfix, Dovecot, Fail2ban, SpamAssassin, etc. In many cases, one may edit a sub-service's config and reload that very sub-service, without stopping and relaunching the whole mail-server. @@ -79,7 +75,7 @@ docker run --rm -it \ -v "${PWD}/docker-data/dms-backups/:/backup/" \ --volumes-from mailserver \ alpine:latest \ - tar czf "/backup/mail-$(date +%F).tar.gz" /var/mail /var/mail-state /var/logs/mail /tmp/docker-mailserver + tar czf "/backup/mail-$(date +%F).tar.gz" /var/mail /var/mail-state /var/log/mail /tmp/docker-mailserver # delete backups older than 30 days find "${PWD}/docker-data/dms-backups/" -type f -mtime +30 -delete