lejmr / iredmail-docker

iRedmail docker container
https://hub.docker.com/repository/docker/lejmr/iredmail
133 stars 60 forks source link

Is there anything required to migrate from 0.9.8 to 1.0? #59

Closed TitanFighter closed 4 years ago

lejmr commented 4 years ago

Actually, it is not that simple, but I didnt have much time though :-) Let me open a wiki page in here. I will put my notes on the upgrade. Generally, you need to

  1. wipe mysql directory
  2. restore each database from backup
  3. apply mysql migrations manually
  4. restart container

Generally, rather simple, but you better have a backup. That was all.

lejmr commented 4 years ago

https://github.com/lejmr/iredmail-docker/wiki/Upgrade-from-0.9.8-to-1.0

TitanFighter commented 4 years ago

Here I wrote a script which helps to migrate DB from ancient 0.9.0+ to 1.2.

kovalroma commented 4 years ago

Hello @lejmr , My installation is iRedMail v0.9.7 with MySQL v0.8

I have a question according to the following steps:

  1. wipe mysql directory
  2. restore each database from backup
  3. apply mysql migrations manually
  4. restart container
  1. wipe mysql directory and 2. restore each database from backup```

iRedMail creates backup of the following databases:

Do I really need to wipe mysql directory, or I can only wipe this databases (amavasid,iredadmin,aredapd,mysql,rouncubemail,sogo,vmail) and import from iRedaMail backup ?

  1. apply mysql migrations manually

Can you point me to the instruction ?

Thank You in Advance

TitanFighter commented 4 years ago

Can you point me to the instruction ?

Read one by one: https://docs.iredmail.org/iredmail.releases.html Also here you will find the answers for your the 1st and the 2nd questions (ie if DBs are not changed in those instructions, you can simply restore them from your backups).