1

Topic: Migrate

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Hello, I am wanting to migrate email data to another disk of greater capacity. Currently my data are in:

/dev/sdb1

And I'm going to migrate to:

/srv/sde1

What are the files that I need to modify to do the migration? I couldn't find anything in the documentation explaining about it. Thank you.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Migrate

The easiest way is: move old mailboxes to new disk, then create a symbol link back to the original directory (/var/vmail/vmail1).

For example, current mailboxes are placed under /var/vmail/vmail1, you mount NEW disk to /mnt/newdisk. For example:

mkdir /mnt/newdisk/mailboxes
rsync -avg /var/vmail/vmail1/* /mnt/newdisk/mailboxes
mv /var/vmail/vmail1 /var/vmail/vmail1.bak
ln -s /mnt/newdisk/mailboxes /var/vmail/vmail1

3

Re: Migrate

ZhangHuangbin, good night. Thank for replay.

I even thought about it, but the problem is I'll have to disable the disk /dev/sdb1 in Azure.

Bye

4

Re: Migrate

Even you don't have /dev/sdb1, you can still have directory /var/vmail/vmail1 on your server.