esackbauer my mailcow runs on a separate local server, so I have no problems with adding disk space, the only question is in the transfer and organization of work
esackbauer 1. Create a backup copy of the Mailcow database using the command:
docker exec $(docker ps -q -f name=mailcowdockerized_db-mailcow_1) mysqldump -uroot -p"$(
docker exec $(docker ps -q -f name=mailcowdockerized_db-mailcow_1) cat /etc/mysql/conf.d/credentials.cnf |
grep password | awk '{print $3}' | sed 's/"//g'
)" mailcow > /tmp/mailcow.sql
- Copy the backup file to the new disk:
cp /tmp/mailcow.sql /path/to/new/disk/
- Stop Mailcow containers:
cd /opt/mailcow-dockerized/
docker-compose down
- Copy the database directory to the new disk:
cp -R /var/lib/docker/volumes/mailcowdockerized_db-mailcow/_data /path/to/new/disk/
- Change the database path in the Mailcow `mailcow.conf’ configuration file
esackbauer 1. Create a backup copy of the Mailcow database using the command:
docker exec $(docker ps -q -f name=mailcowdockerized_db-mailcow_1) mysqldump -uroot -p"$(
docker exec $(docker ps -q -f name=mailcowdockerized_db-mailcow_1) cat /etc/mysql/conf.d/credentials.cnf |
grep password | awk '{print $3}' | sed 's/"//g'
)" mailcow > /tmp/mailcow.sql
- Copy the backup file to the new disk:
cp /tmp/mailcow.sql /path/to/new/disk/
- Stop Mailcow containers:
cd /opt/mailcow-dockerized/
docker-compose down
- Copy the database directory to the new disk:
cp -R /var/lib/docker/volumes/mailcowdockerized_db-mailcow/_data /path/to/new/disk/
- Change the database path in the Mailcow `mailcow.conf’ configuration file
[unknown] will this algorithm be correct?
- Create a backup copy of the Mailcow database using the command:
docker exec $(docker name ps -q -f=mailcowdockerized_db-mailcow_1) mysqldump -uroot -p"$(
docker exec$(docker name ps -q -f=mailcowdockerized_db-mailcow_1) cat /etc/mysql/conf.d/credentials.cnf |
password grep | awk '{print $3}' | sed 's/"//g'
)" mailcow > /tmp/mailcow.sql
- Copy the backup file to the new disk:
cp /tmp/mailcow.sql /path/to/new/disk/
- Stop Mailcow containers:
``
cd /opt/mailcow-pinned/
docker-compose down
4. Copy the database directory to the new disk:
`
cp -R /var/lib/docker/volumes/mailcowdockerized_db-mailcow/_data /path/to/new/disk/
``
5. Change the database path in the Mailcow configuration file `mailcow.conf'