From 2edaf1875ed7eaca273cdebdc218947a958324a9 Mon Sep 17 00:00:00 2001 From: fcovecino <36968377+fcovecino@users.noreply.github.com> Date: Fri, 26 Oct 2018 16:49:37 -0500 Subject: [PATCH 1/2] Update u_e-dovecot-vmail-volume.md Included the process to move the vmail folder. --- docs/u_e-dovecot-vmail-volume.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/u_e-dovecot-vmail-volume.md b/docs/u_e-dovecot-vmail-volume.md index dfc52488d..013352309 100644 --- a/docs/u_e-dovecot-vmail-volume.md +++ b/docs/u_e-dovecot-vmail-volume.md @@ -8,3 +8,12 @@ volumes: device: /data/mailcow/vmail o: bind ``` + +The process to move the vmail folder is: +Locate the current vmail folder: `docker volume inspect mailcowdockerized_vmail-vol-1` +Copy the `_data` folder to the new folder using `cp -a` +Stop Mailcow by executing (from the Mailcow root folder) `docker-compose down` +Create the file `docker-compose.override.yml` +Delete the current vmail folder: `docker volume rm mailcowdockerized_vmail-vol-1` +Start Mailcow by executing (from the Mailcow root folder) `docker-compose up -d` + From 11227af99b64c78290ec67be434f2a45f8452d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Thu, 6 Dec 2018 22:40:18 +0100 Subject: [PATCH 2/2] Update u_e-dovecot-vmail-volume.md --- docs/u_e-dovecot-vmail-volume.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/u_e-dovecot-vmail-volume.md b/docs/u_e-dovecot-vmail-volume.md index 013352309..260af776d 100644 --- a/docs/u_e-dovecot-vmail-volume.md +++ b/docs/u_e-dovecot-vmail-volume.md @@ -9,11 +9,10 @@ volumes: o: bind ``` -The process to move the vmail folder is: -Locate the current vmail folder: `docker volume inspect mailcowdockerized_vmail-vol-1` -Copy the `_data` folder to the new folder using `cp -a` -Stop Mailcow by executing (from the Mailcow root folder) `docker-compose down` -Create the file `docker-compose.override.yml` -Delete the current vmail folder: `docker volume rm mailcowdockerized_vmail-vol-1` -Start Mailcow by executing (from the Mailcow root folder) `docker-compose up -d` - +Moving an existing vmail folder: +- Locate the current vmail folder by its "Mountpoint" attribute: `docker volume inspect mailcowdockerized_vmail-vol-1` +- Copy the `_data` folder to the new folder using `cp -a`, `rsync -a` or a similar non strcuture breaking copy command +- Stop mailcow by executing `docker-compose down` from within your mailcow root folder (e.g. "/opt/mailcow-dockerized") +- Create the file `docker-compose.override.yml` +- Delete the current vmail folder: `docker volume rm mailcowdockerized_vmail-vol-1` +- Start mailcow by executing `docker-compose up -d` from within your mailcow root folder (e.g. "/opt/mailcow-dockerized")