Hi,
I've just tried
doveadm backup /var/spool2/mail/user1 /home/backup/
doveadm(user1): Error: Index is read-only, can't
write-lock /var/spool2/mail/user1/dovecot.list.index.log
doveadm(user1): Fatal: execvp(/var/spool2/mail/user1) failed:
Permission denied
dsync-local(user1)<RYx1OMIeCGLn3AMATqx/tA>: Error:
read(remote) failed: EOF (version not received)
even this, with a chmod 777 on the all folder (
/var/spool2/mail/user1 before :-( )
What is the trick ? :-)
What did I miss out ?
Thanks for your help
On Fri, 11 Feb 2022, Stephane Magnier wrote:
OK , so I can see that there is this doveadm backup..
I don't use any MailDir on each account.. but all the emails are stored into the folder /var/www/mail ( user 1 , user2, etc... )
in that case, a very basic backup would be : *doveadm backup /var/www/mail /var/backup/folder* ?
I use doveadm backup like that and then rsync the backup (not the "live" mailboxes) to another place.
( I prefer to ask before trying, because If break something.. here, they will kill me :-( )
It's understandable :)
Cheers,
Bernardo