Topic: [SOLVED] Problem restoring a mailbox backup.
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
I normally perform the backups by rsyncing the complete mailbox directory structure to a remote server. I'm trying to restore a backup of a user's mailbox. After restoring it, I see that the complete mailbox has been restored, but just after the user access her email through thunderbird or SOGo, a lot of messages are deleted.
The proccess I follow is:
* Rename the old Maildir directory in the user's Mailbox directory.
* Restore the Maildir directory from the backup.
* Change ownership of the restored directory to vmail:vmail.
In the following snippet you can see the count of files in the user's mailbox directory, and how it suddenly drops from 9047 to 2924 files.
[root@xmail xxx-2017.02.13.16.53.23]# find Maildir | wc -l
9047
[root@xmail xxx-2017.02.13.16.53.23]# find Maildir | wc -l
9047
[root@xmail xxx-2017.02.13.16.53.23]# find Maildir | wc -l
7380
[root@xmail xxx-2017.02.13.16.53.23]# find Maildir | wc -l
2924
[root@xmail xxx-2017.02.13.16.53.23]# find Maildir | wc -l
2924
Nothing is found in the dovecot logs.
Is there anything I'm doing wrong, or am I omitting something? I think that I have restored some mail files in the past without any issues.
Thanks for your attention.
Guillermo.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.