1 (edited by roy.wong 2013-08-13 10:14:27)

Topic: Problem on copy vmail folder to NAS backup

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

HI,

I try to copy the vmail1 folder to a NAS using the following command but have some problem, it seems cannot copy the file to the read only folder such as file under /var/vmail/vmail1/domain/user/cur/*, it said "cp: cannot create regular file *********: No such file or directory

cp -a /var/vmail/vmail1 /var/vmail/<<mount to NAS>>

any advice?

Thanks!

----

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

2

Re: Problem on copy vmail folder to NAS backup

I guess mail user is accessing the mailbox, and IMAP server (Dovecot) moves them from this folder to another one.

P.S. It's a good idea to use '-p' option to keep file owner/permission.