Dovecot Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
=Backup a Mailbox= | =Backup a Mailbox= | ||
On the Dovecot server host: | |||
cd .../<''user-home''> | cd .../<''user-home''> | ||
Line 9: | Line 11: | ||
=Restore a Mailbox= | =Restore a Mailbox= | ||
As root: | |||
cd .../<user-home> | |||
The following command will create a Maildir subdirectory, so if there's one already, back it up: | |||
gunzip < archive.tar.gz | tar -xvspf - | |||
Restore ownership: | |||
chown -R <''dovecot-owner-uid''>:<''dovecot-owner-gid''> Maildir | |||
chown -R 58580:58580 Maildir | |||
=Logs= | |||
On the docker host: /rackstation/dovecot/log |
Latest revision as of 05:50, 21 May 2018
Internal
Backup a Mailbox
On the Dovecot server host:
cd .../<user-home> tar -cvspf - Maildir | gzip > yyyy.mm.dd-dovecot-IMAP-<user-name>-Maildir.tar.gz
Restore a Mailbox
As root:
cd .../<user-home>
The following command will create a Maildir subdirectory, so if there's one already, back it up:
gunzip < archive.tar.gz | tar -xvspf -
Restore ownership:
chown -R <dovecot-owner-uid>:<dovecot-owner-gid> Maildir chown -R 58580:58580 Maildir
Logs
On the docker host: /rackstation/dovecot/log