I am having trouble locating examples of how to use doveadm backup. All the examples I see are for sync. I simply want to create a backup to a network volume of the email server's vmail folders. The goal here is to have a reasonably current backup should the main drive on the email server go south. We currently authenticate our users from a mysql database. User?s mailboxes are stored as domainname/username/Maildir I assume what I will wind up on the network volume is a duplicate directory structure as the vmail folder on the email server? Can someone help get me started here? Jeff
On Feb 20, 2019, at 21:11, SH Development via dovecot <dovecot at dovecot.org> wrote:> Can someone help get me started here?Does this help? https://unix.stackexchange.com/questions/489331/what-is-the-correct-way-to-use-doveadm-to-backup-emails -- This is my signature. There are many like it, but this one is mine. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190220/50bca445/attachment.html>
Not really. The suggestions in the post seemed to be: 1. Tar the whole directory, which I have tried in the past, but a 130G directory takes over 18 hours to tar. 2. It was also suggested to rsync the directory, but the question was brought up, and not answered, about whether it was advisable to copy live mail, thus the need for doveadm sync/backup. Based on what I?ve read about doveadm backup, this is what I need, I am just having a hard time formulating the syntax for the command. Jeff> On Feb 20, 2019, at 10:45 PM, @lbutlr via dovecot <dovecot at dovecot.org> wrote: > > On Feb 20, 2019, at 21:11, SH Development via dovecot <dovecot at dovecot.org <mailto:dovecot at dovecot.org>> wrote: >> Can someone help get me started here? > > Does this help? > > https://unix.stackexchange.com/questions/489331/what-is-the-correct-way-to-use-doveadm-to-backup-emails <https://unix.stackexchange.com/questions/489331/what-is-the-correct-way-to-use-doveadm-to-backup-emails> > > -- > This is my signature. There are many like it, but this one is mine. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190220/e5666a2f/attachment-0001.html>
Here is my command: [root at mail maelstrombackups] #mkdir -p vmailbackup [root at mail vmail]# chown: vmail:vmail /mnt/maelstrombackups/vmailbackup [root at mail vmail]# doveadm backup -u jeff maildir:/mnt/maelstrombackups/vmailbackup Only gives me the usage list, doesn?t work. Jeff> On Feb 21, 2019, at 1:29 AM, Sami Ketola <Sami.Ketola at Open-Xchange.com> wrote: > > > >> On 21 Feb 2019, at 7.04, SH Development via dovecot <dovecot at dovecot.org> wrote: >> >> Not really. The suggestions in the post seemed to be: >> >> 1. Tar the whole directory, which I have tried in the past, but a 130G directory takes over 18 hours to tar. >> 2. It was also suggested to rsync the directory, but the question was brought up, and not answered, about whether it was advisable to copy live mail, thus the need for doveadm sync/backup. >> >> Based on what I?ve read about doveadm backup, this is what I need, I am just having a hard time formulating the syntax for the command. >> > > root at ketola ~]# mkdir -p /backup/sami > root at ketola ~]# chown vmail:vmail /backup/sami > root at ketola ~]# doveadm backup -u sami Maildir:/backup/sami > <snip> > root at ketola ~]# du -hs /backup/sami > 211M /backup/sami > > does this help? > > Sami
On Thu, 21 Feb 2019 at 07:11, SH Development via dovecot < dovecot at dovecot.org> wrote:> I am having trouble locating examples of how to use doveadm backup. All > the examples I see are for sync. I simply want to create a backup to a > network volume of the email server's vmail folders. The goal here is to > have a reasonably current backup should the main drive on the email server > go south. > > We currently authenticate our users from a mysql database. User?s > mailboxes are stored as domainname/username/Maildir > > I assume what I will wind up on the network volume is a duplicate > directory structure as the vmail folder on the email server? > > Can someone help get me started here? > > JeffIn my previous life as a SysAdmin, I solved this kind of problem easily using the MTA. Exim is my MTA of choice and has a facility to do concurrent delivery to two storage locations using shadow_transport. I am guessing your MTA is Postfix (or maybe Sendmail). Try and see if they have such a capability or switch to Exim. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190222/82b5b4a9/attachment.html>
Okay, apparently I?m just a complete idiot. Why doesn?t this work? doveadm -Dv backup -u user Maildir:/mnt/maelstrombackups/vmailbackup With user being the actual user name. No backup is created, it just shows me the usage text. Jeff> On Feb 20, 2019, at 10:11 PM, SH Development <listaccount at starionline.com> wrote: > > I am having trouble locating examples of how to use doveadm backup. All the examples I see are for sync. I simply want to create a backup to a network volume of the email server's vmail folders. The goal here is to have a reasonably current backup should the main drive on the email server go south. > > We currently authenticate our users from a mysql database. User?s mailboxes are stored as domainname/username/Maildir > > I assume what I will wind up on the network volume is a duplicate directory structure as the vmail folder on the email server? > > Can someone help get me started here? > > Jeff
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> What version are you using? </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 10 March 2019 00:40 SH Development via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Okay, apparently I’m just a complete idiot. Why doesn’t this work? </div> <div> <br> </div> <div> doveadm -Dv backup -u user Maildir:/mnt/maelstrombackups/vmailbackup </div> <div> <br> </div> <div> With user being the actual user name. </div> <div> <br> </div> <div> No backup is created, it just shows me the usage text. </div> <div> <br> </div> <div> Jeff </div> <div> <br> </div> <blockquote type="cite"> <div> On Feb 20, 2019, at 10:11 PM, SH Development < <a href="mailto:listaccount@starionline.com">listaccount@starionline.com</a>> wrote: </div> <div> <br> </div> <div> I am having trouble locating examples of how to use doveadm backup. All the examples I see are for sync. I simply want to create a backup to a network volume of the email server's vmail folders. The goal here is to have a reasonably current backup should the main drive on the email server go south. </div> <div> <br> </div> <div> We currently authenticate our users from a mysql database. User’s mailboxes are stored as domainname/username/Maildir </div> <div> <br> </div> <div> I assume what I will wind up on the network volume is a duplicate directory structure as the vmail folder on the email server? </div> <div> <br> </div> <div> Can someone help get me started here? </div> <div> <br> </div> <div> Jeff </div> </blockquote> </blockquote> <div> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>