Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Sv translation
languageen

Introduction

This page describes the procedure to follow in the following cases:

  1. The contents of a user's mailbox must be restored and Single-user restoration using DataProtect has failed.
  2. You want to restore the contents of a user's mailbox into another user's mailbox.

BlueMind provides a couple of shell and python scripts to help you with restoring data from a user mailbox backup.

Volet

On this page:

Sommaire
maxLevel2

Related:

Sauvegarde et restauration

Prerequisites

To be able to use these scripts, the Python Client must be installed on the machine.

Useful files

View file
namerestore.sh
height250
View file
nameupdateMboxAcls.py
height250

Procedure

The script restore.sh will restore user data from the backup directory into a user's or another user's mailbox, as required, into a sub-folder named restored_<timestamp>.

To start it:

Bloc de code
./restore.sh USER|MAILSHARE EMAIL_ADDRESS_SOURCE BACKUP_PATH USER|MAILSHARE EMAIL_ADDRESS_DEDEST
  • USER|MAILSHARE: to restore a user use the keyword USER, to restore a shared mailbox use the keyword MAILSHARE
  • EMAIL_ADDRESS_SOURCE : email address of the user or mailshare you want to restore
  • BACKUP_PATH: path to the data in the BlueMind backup directory (/var/backups). The path looks like:

    Tabs group
    borderall-sides
    navcolornavy
    User

    /var/backups/bluemind/dp_spool/rsync/<IP>/mail/imap/<backup number>/var/spool/cyrus/data/<bluemind domain>/domain/<domain initial>/<domaine bluemind>/<user initial>/user/<user>/

    E.g. for the user "jdoe" on the domain "bluemind.loc":

    /var/backups/bluemind/dp_spool/rsync/192.168.122.148/mail/imap/806/var/spool/cyrus/data/bluemind_loc/domain/b/bluemind.loc/j/user/jdoe/

    Mailshare

    /var/backups/bluemind/dp_spool/rsync/<IP>/mail/imap/<sauvegarde>/var/spool/cyrus/data/<domaine>/domain/<initiale_domaine>/<domaine>/

    You can see that for a mailbox, the path stops at the domain level. Therefore, the path is always the same for all mailshares of the domain.

    E.g. in our sample domain "bluemind.loc", path will be:

    /var/backups/bluemind/dp_spool/rsync/192.168.122.148/mail/imap/806/var/spool/cyrus/data/bluemind_loc/domain/b/bluemind.loc/

  • USER|MAILSHARE: as for first keyword, indicates the target mailbox type
  • EMAIL_ADDRESS_DESDEST: email address for the target mailbox you want to restore the data into

Then, you have 4 possibilities:

Tabs group
borderall-sides
navcolornavy
User > UserUser > MailshareMailshare > UserMailshare > Mailshare