Hi, I want to do a simple backup of my maildir. I read here that maildirlock is not to count on in the future and the recommended option was to use doveadm backup. However, it seems that this requires to setup another dovecot server. My questions are: - How much to I need to configure this new server? Do I need to setup user by user, or even install postfix (that's where my users are configured) to get it all backed up? I tried to install dovecot and running doveadm backup, but it complains the users are not there. - What's the simplest way to configure dovecot without mirrowing my server so that this can work? Best, Francis --- Francis Augusto Medeiros-Logeay Oslo, Norway
Am 29.05.2020 um 17:37 schrieb Francis Augusto Medeiros-Logeay:> Hi, > > I want to do a simple backup of my maildir. I read here that > maildirlock is not to count on in the future and the recommended > option was to use doveadm backup. However, it seems that this requires > to setup another dovecot server. > > My questions are: > > - How much to I need to configure this new server? Do I need to setup > user by user, or even install postfix (that's where my users are > configured) to get it all backed up? I tried to install dovecot and > running doveadm backup, but it complains the users are not there. > - What's the simplest way to configure dovecot without mirrowing my > server so that this can work? > > Best, > > Francis > > --- > Francis Augusto Medeiros-Logeay > Oslo, NorwayHello Francis, I also have maildir as mailbox format and use the following script to do daily backups https://github.com/tachtler/dovecot-backup There's also a more detailed how-to which explains how to do a restore. But it's only in german language https://www.dokuwiki.tachtler.net/doku.php?id=tachtler:dovecot_backup_-_skript Google Translate is your friend ;) perhaps this might help? greetings Becki
On 2020-05-30 07:49, Admin Beckspaced wrote:> Am 29.05.2020 um 17:37 schrieb Francis Augusto Medeiros-Logeay: >> Hi, >> >> I want to do a simple backup of my maildir. I read here that >> maildirlock is not to count on in the future and the recommended >> option was to use doveadm backup. However, it seems that this requires >> to setup another dovecot server. >> >> My questions are: >> >> - How much to I need to configure this new server? Do I need to setup >> user by user, or even install postfix (that's where my users are >> configured) to get it all backed up? I tried to install dovecot and >> running doveadm backup, but it complains the users are not there. >> - What's the simplest way to configure dovecot without mirrowing my >> server so that this can work? >> >> Best, >> >> Francis >> >> --- >> Francis Augusto Medeiros-Logeay >> Oslo, Norway > > Hello Francis, > > I also have maildir as mailbox format and use the following script to > do daily backups > > https://github.com/tachtler/dovecot-backup > > There's also a more detailed how-to which explains how to do a restore. > But it's only in german language > > https://www.dokuwiki.tachtler.net/doku.php?id=tachtler:dovecot_backup_-_skript > > Google Translate is your friend ;) > perhaps this might help? > > greetings > BeckiThanks a lot Becki. I read your script, but the thing is that I want to backup to a remote server. Your script seems to be focused on a local backup. Did I get it right? But it still gives me a good idea of a possibility of backing up locally and rsyncing to another server. -- Francis Augusto Medeiros-Logeay Oslo, Norway
On 29 May 2020, at 23:49, Admin Beckspaced <admin at beckspaced.com> wrote:> I also have maildir as mailbox format and use the following script to do daily backups > > https://github.com/tachtler/dovecot-backupA couple of notes on this quite useful script: My mktemp does not support -p (FreeBSD 12.1) is I had to change the script to: DIR_TEMP=$($MKTEMP_COMMAND -d $TMP_FOLDER -t $SCRIPT_NAME) Which gives a temp folder along the lines of /tmp/dovecot_backup.IiZ00GyZ I also changed the various date strings to date -Iseconds and date -R for the mail handling since the format in the script is not to spec, using Fri, 29 May 2020 23:49:31 (-0600) Instead of the -R, --rfc-email output date and time in RFC 5322 format. Example: Mon, 14 2006 02:34:56 -0600 -- FRIDAYS ARE NOT "PANTS OPTIONAL" Bart chalkboard Ep. AABF23