Skip to content

Migration to a New Server

This tutorial shows how to migrate Monsta from version >5.0 to another server.

Minimum requirements for Monsta migration:

ItemRequisito Mínimo
Espaço em discoDisk space
40GB free for /var (settings, database and logs)
300MB free for /opt/monsta (programs and libraries)
Ensure the new installation has enough space to perform the migration.
Memória RAMRAM
2GB of RAM
Sistema OperacionalOperating System
Linux 64-bit
Recommended Linux OS: Fedora Server 40 (x86_64 systems) or Ubuntu Server 24. A minimal installation can be used for Monsta.
ProcessadorProcessor
Cores: 2
Speed: 1.8GHz

Logged in as root on your server, download the migration script as in the example below:

Terminal window
yum install -y wget sshpass
wget https://www.monsta.com.br/monsta/download/migrate.sh
Terminal window
apt-get install -y wget sshpass
wget https://www.monsta.com.br/monsta/download/migrate.sh

After downloading the script, run it with the following syntax:

sh migrate.sh <user> <"password"> <current Monsta server IP> <ssh port>

Example:

Terminal window
sh migrate.sh root "minha senha" 192.168.1.1 22

The script will stop Monsta processes running on the old server (192.168.1.1) and will start copying the structure and data to the new server. At the end of the process you will be able to access your Monsta on the new server and the old one can be deactivated.