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 migrating Monsta:

ItemMinimum Requirement
Disk spaceDisk space
• 40GB free for /var (configurations, database and logs)
• 300MB free for /opt/monsta (programs and libraries)

Make sure the new installation has enough space to perform the migration.
RAMRAM
• 2GB of RAM
Operating SystemOperating System
• 64-bit Linux
• Recommended Linux OS: Fedora Server 40 (x86_64 systems) or Ubuntu Server 24

A minimal installation can be used for Monsta.
ProcessorProcessor
• Cores: 2
• Speed: 1.8GHz

Log in to your new server as root and download the migration script as in the example below:

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

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

Terminal window
./migrate.sh

Before starting the migration and installation process, the script will ask for SSH access information to the source server: IP address/hostname, connection port and a user with root privileges.

These details are necessary to establish a secure remote connection between environments. From that access, the script will stop services on the old server, transfer the complete structure of files, logs and databases preserving file permissions, and register and start Monsta services on the new server.