Quantcast
Channel: Linux Mail Server Setup and Howto Guide » Backup
Viewing all articles
Browse latest Browse all 3

Backup Postfix Mailbox

$
0
0

Backing up your mailboxes is a simple as copying your mailbox folder. This article describes how to backup and restore your Postfix mailboxes using the tar command.

Backup mailbox
To backup the mailbox, type the command below in a terminal window.
tar cvzf mailbox-`date +%F_%H%M`.tar.gz /home/vmail

Replace /home/vmail with the location of your own mailbox.

Restore mailbox
To restore the mailbox, type the command below in a terminal window.
tar xvzf mailbox.tar.gz -C /

Replace mailbox.tar.gz with the name of your backup file.

NoteIdeally, the Postfix and Dovecot configurations should be documented, or better yet, maintained using a change configuration process. But you can also use the procedure above to backup the /etc directory although it is not recommended since you may restore your configuration on an updated OS.

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images