diff --git a/docs/i_u_m/i_u_m_migration.de.md b/docs/i_u_m/i_u_m_migration.de.md index 8ef293527..66d20ede7 100644 --- a/docs/i_u_m/i_u_m_migration.de.md +++ b/docs/i_u_m/i_u_m_migration.de.md @@ -4,32 +4,15 @@ !!! tip Alternativ können Sie das Skript `./helper-scripts/backup_and_restore.sh` verwenden, um ein vollständiges Backup auf der Quellmaschine zu erstellen, dann installieren Sie mailcow auf der Zielmaschine wie gewohnt, kopieren Sie Ihre `mailcow.conf` und verwenden Sie das gleiche Skript, um Ihr Backup auf der Zielmaschine wiederherzustellen. -**1\.** -Installieren Sie [Docker](https://docs.docker.com/engine/installation/linux/) und [docker compose](https://docs.docker.com/compose/install/) auf Ihrem neuen Server. - -Schnelle Installation für die meisten Betriebssysteme: - -- Docker -``` -curl -sSL https://get.docker.com/ | CHANNEL=stable sh -# Nachdem der Installationsprozess abgeschlossen ist, müssen Sie den Dienst aktivieren und sicherstellen, dass er gestartet ist (z. B. CentOS 7) -systemctl enable docker.service -``` - -- docker compose -``` -curl -L https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker compose/latest.php)/docker compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker compose -chmod +x /usr/local/bin/docker compose -``` - -Bitte verwenden Sie die neueste verfügbare Docker-Engine und nicht die Engine, die mit Ihrem Distros-Repository ausgeliefert wird. +**1\.** +Befolgen Sie die [Installationsanleitung](i_u_m_install.de.md) von Docker und Compose. **2\.** Stoppen Sie Docker und stellen Sie sicher, dass Docker gestoppt wurde: ``` systemctl stop docker.service systemctl status docker.service ``` - + **3\.** Führen Sie die folgenden Befehle auf dem Quellcomputer aus (achten Sie darauf, die abschließenden Schrägstriche im ersten Pfadparameter wie unten gezeigt hinzuzufügen!) - **WARNUNG: Dieser Befehl löscht alles, was bereits unter `/var/lib/docker/volumes` auf dem Zielrechner existiert**: ``` rsync -aHhP --numeric-ids --delete /opt/mailcow-dockerized/ root@target-machine.example.com:/opt/mailcow-dockerized @@ -61,4 +44,4 @@ docker compose pull docker compose up -d ``` -**9\.** Zum Schluss ändern Sie Ihre DNS-Einstellungen so, dass sie auf den Zielserver zeigen. \ No newline at end of file +**9\.** Zum Schluss ändern Sie Ihre DNS-Einstellungen so, dass sie auf den Zielserver zeigen. diff --git a/docs/i_u_m/i_u_m_migration.en.md b/docs/i_u_m/i_u_m_migration.en.md index 07afa08b6..9f8c8ae1e 100644 --- a/docs/i_u_m/i_u_m_migration.en.md +++ b/docs/i_u_m/i_u_m_migration.en.md @@ -4,32 +4,15 @@ !!! tip Alternatively, you can use the `./helper-scripts/backup_and_restore.sh` script to create a full backup on the source machine, then install mailcow on the target machine as usual, copy over your `mailcow.conf` and use the same script to restore your backup to the target machine. -**1\.** -Install [Docker](https://docs.docker.com/engine/installation/linux/) and [docker compose](https://docs.docker.com/compose/install/) on your new server. - -Quick installation for most operation systems: - -- Docker -``` -curl -sSL https://get.docker.com/ | CHANNEL=stable sh -# After the installation process is finished, you may need to enable the service and make sure it is started (e.g. CentOS 7) -systemctl enable docker.service -``` - -- docker compose -``` -curl -L https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker compose/latest.php)/docker compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker compose -chmod +x /usr/local/bin/docker compose -``` - -Please use the latest Docker engine available and do not use the engine that ships with your distros repository. +**1\.** +Follow the [installation guide](i_u_m_install.en.md) to install Docker and Compose. **2\.** Stop Docker and assure Docker has stopped: ``` systemctl stop docker.service systemctl status docker.service ``` - + **3\.** Run the following commands on the source machine (take care of adding the trailing slashes in the first path parameter as shown below!) - **WARNING: This command will erase anything that may already exist under `/var/lib/docker/volumes` on the target machine**: ``` rsync -aHhP --numeric-ids --delete /opt/mailcow-dockerized/ root@target-machine.example.com:/opt/mailcow-dockerized