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
Remarque

This page is no longer being updated. From BlueMind 4.8, please refer to the new BlueMind documentation

Introduction

When BlueMind backups are stored externally and you want to restore data, you must first move the data to the BlueMind server so that it recognizes it.

Volet

On this page:

Sommaire

Method

Avertissement

The IP address must not have changed between the external server and the server you want to restore BlueMind on.

Failing that, you will have to edit the external backup path to show the new IP and change the BlueMind server's IP address after the restoration process (via BlueMind support request).

The purpose of this operation is to temporarily mount the storage volume the external backup relies on, then get DataProtect to acknowledge the presence of this data on the server.

  1. Mount the external directory as --bind in the BlueMind backup directory:

    Bloc de code
    mount --bind <external_backup> /var/backups/bluemind/
  2. Synchronize the DataProtect navigator again using the following script:

    Bloc de code
    #!/bin/bash
    
    core="http://localhost:8085/services"
    latd="admin0@global.virt"
    pass=`cat /etc/bm/bm-core.tok`
    
    wget -q -O- \
    "${core}/login/doLogin?login=${latd}&password=${pass}&origin=sh" | \
    xmllint --format - | \
    grep sid| \
    sed  's#  <sid>\([^<]*\)</sid>$#\1#' | tee session.tok
    
    session=`cat session.tok`
    
    wget -q -O- "${core}/dataprotect/syncWithFS?sid=${session}"|xmllint --format -
  3. Restore using theDataProtect navigator.

Notes

You can also do a bind mount to temporarily replace the content of the latest existing backup by the contents of the external backup while you carry out the restoration through the DataProtect navigator.   

In that case, you don't have to synchronize the navigator again as you are using the last known backup which is already referenced.

  • To restore a user's emails, you can use the following mount (e.g. for the user "admin"):

    Bloc de code
    mount --bind <external_backup_BAL> /var/backups/bluemind/dp_spool/rsync/172.16.45.161/mail/imap/XXXX/var/spool/cyrus/domain_tld/domain/d/domain.tld/a/user/admin/

    XXXX is the number for the latest backup in the file system.

  • To restore calendars or contacts, you can use the same process as for the PostgreSQL database dump in the directory:

    Bloc de code
    /var/backups/bluemind/dp_spool/rsync/172.16.45.161/bm/pgsql/XXXX/var/backups/bluemind/work/bm_pgsql/
Sv translation
languagede
Remarque

Diese Seite ist nicht mehr aktuell. Ab der Version BlueMind 4.8 finden Sie alle Infos in der neuen Dokumentation

Einführung

Wenn BlueMind-Backups ausgelagert sind und Daten wiederhergestellt sollen, müssen die Daten zunächst auf dem BlueMind-Server wiederhergestellt werden, bevor der Zugriff möglich ist.

Volet

Auf dieser Seite:

Sommaire

Methode

Avertissement

Die IP-Adresse darf sich zwischen dem externen Backup und dem Server, auf dem BlueMind wiederhergestellt werden soll, nicht geändert haben.

Andernfalls muss der Pfad des externen Backups so geändert werden, dass die neue IP angezeigt wird, und nach der Wiederherstellung die IP-Adresse eines BlueMind-Servers ändern (Verfahren auf Anfrage beim BlueMind-Support).

Das Prinzip dieses Vorgangs besteht darin, das Speichervolumen, auf dem das ausgelagerte Backup basiert, vorübergehend zu mounten und dann DataProtect über die Existenz dieser Daten auf dem Server zu informieren.

  1. Das externe Verzeichnis als --bind in das BlueMind-Backupverzeichnis mounten:

    Bloc de code
    mount --bind <sauvegarde_externe> /var/backups/bluemind/
  2. Den DataProtect-Browser erneut mit dem folgenden Skript synchronisieren:

    Bloc de code
    #!/bin/bash
    
    core="http://localhost:8085/services"
    latd="admin0@global.virt"
    pass=`cat /etc/bm/bm-core.tok`
    
    wget -q -O- \
    "${core}/login/doLogin?login=${latd}&password=${pass}&origin=sh" | \
    xmllint --format - | \
    grep sid| \
    sed  's#  <sid>\([^<]*\)</sid>$#\1#' | tee session.tok
    
    session=`cat session.tok`
    
    wget -q -O- "${core}/dataprotect/syncWithFS?sid=${session}"|xmllint --format -
  3. Wiederherstellen mit dem DataProtect-Browser

Hinweise

Das Mounten von bind kann auch verwendet werden, um den Inhalt das letzten vorhandenen Backups vorübergehend durch den Inhalt des externen Backups zu ersetzen, während die Wiederherstellung über den DataProtect-Browser durchgeführt wird.

In diesem Fall ist es nicht notwendig, den Browser neu zu synchronisieren, da das letzte bekannte und bereits referenzierte Backup verwendet wird.

  • Um die Mails eines Benutzers wiederherzustellen, kann man folgendes Setup verwenden (z. B. für den Benutzer "admin"):

    Bloc de code
    mount --bind <sauvegarde_externe_BAL> /var/backups/bluemind/dp_spool/rsync/172.16.45.161/mail/imap/XXXX/var/spool/cyrus/domain_tld/domain/d/domain.tld/a/user/admin/

    XXXX ist die Nummer des letzten Backups des Dateisystems.

  • Wenden Sie zur Wiederherstellung der Terminplaner oder Kontakte den gleichen Prozess an, der für die Dump-Wiederherstellung der PostgreSQL-Datenbank im Verzeichnis gilt:

    Bloc de code
    /var/backups/bluemind/dp_spool/rsync/172.16.45.161/bm/pgsql/XXXX/var/backups/bluemind/work/bm_pgsql/