Migration to a New Server
This tutorial shows how to migrate Monsta from version >5.0 to another server.
Minimum requirements
Section titled “Minimum requirements”Minimum requirements for Monsta migration:
| Item | Requisito Mínimo |
|---|---|
![]() | Disk 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. |
![]() | RAM 2GB of RAM |
![]() | Operating 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. |
![]() | Processor Cores: 2 Speed: 1.8GHz |
Migration script
Section titled “Migration script”Logged in as root on your server, download the migration script as in the example below:
Fedora/Red-Hat
Section titled “Fedora/Red-Hat”yum install -y wget sshpasswget https://www.monsta.com.br/monsta/download/migrate.shUbuntu/Debian
Section titled “Ubuntu/Debian”apt-get install -y wget sshpasswget https://www.monsta.com.br/monsta/download/migrate.shStarting the transfer
Section titled “Starting the transfer”After downloading the script, run it with the following syntax:
sh migrate.sh <user> <"password"> <current Monsta server IP> <ssh port>
Example:
sh migrate.sh root "minha senha" 192.168.1.1 22The 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.



