1

Topic: How to restore MySQL files

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

Hi,

in the wiki the restore process is decribed:

http://www.iredmail.org/docs/backup.restore.html

But it is not described how to restore the plain SQL files. Can you maybe help me?

----

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

2

Re: How to restore MySQL files

SQL file can be easily imported/restored like this:

mysql -uroot -p vmail < vmail.sql

"vmail" is the database name, "vmail.sql" is the SQL file.