This document describes how to mount a backup partition via Rsync.
Requirements
- A user with permission to use Rsync in the target backup device.
- A dedicated directory owned by the Rsync user to be used for the backup (for example,
/home/senhauser/backup_rsync). - Rsync installed in the backup server.
- The public key of the Segura™ root user in the authorized keys of the backup user (Step 1). Rsync backups require an SSH key.
- The host key of the backup server trusted by the appliance before the first backup (Step 2).
- In a cluster, a separate destination folder for each node. Each node runs its own backup and keeps the destination folder identical to its own backup files, so nodes that share a folder overwrite or remove each other's files.
Always ensure backups are saved in a different location to protect sensitive information and maintain business continuity.
For Segura™ with the crypto appliance, backups should not be stored on the appliance itself because:
- Single Point of Failure: If the appliance fails, you could lose both the data and the backup.
- Limited Recovery Options: In the event of a hardware or software malfunction, having backups on an external device ensures that you have multiple avenues for data recovery.
- Best Practices: Store backups in a separate, secure location to comply with data protection standards and ensure availability.
How to mount a backup partition via Rsync
To mount a backup partition via Rsync, follow these steps:
Step 1: Get the public key of the root user
-
Start an SSH session on your Segura™ server as the user
mt4admusing port 59022. -
Run the command
sudo cat /root/.ssh/id_rsa.pub:sudo cat /root/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChIgNXVHrjq3ECwVytNb9k2liB5vGFNNtTDdwSYaYW/WQ8 NC0yq70BxcmaQWwFddWfQIQVjMw2WZNkroTsinEZkLHBUN12eMMwNB4izo0iQ70IB8wSj2lQbl/G AYyzQCZQRo486eFHFJVIaTviDpf32D/O6qz6JGvCpRRzx7owZhuscJGfUesl/q0sCZ9DUn79TLtj/lIC+na4s5c1g/SYyO7IkdwQBkeeXJSasdqwe34gbcvbdf5dL5f00EIIEHclg5tBxmt9UQ2yRXu1 GbkbdFF5tllNdUfgy4Eb7K8kCTm/djb1ljzWiZodtzas+gPWZOHWaV8nAl17Zc1+xeL shbupk -
Copy the displayed public key.
-
Log in to the backup server and paste this public key into the
authorized_keysfile of the backup user:vim /home/rsync/.ssh/authorized_keys -
Confirm the SSH configuration by executing:
sudo ssh <backup_user@server>
Step 2: Trust the host key of the backup server
The backup connects to the backup server without user interaction, so it cannot accept a host key on its own. Before the first backup, the root user of the appliance must already trust the host key of the backup server. If the key is unknown, or if it changes later (for example, after the backup server is reinstalled), the backup fails with Host key verification failed and copies no files.
To trust the host key, connect once from the appliance to the backup server as the root user:
- Start an SSH session on your Segura™ server as the user
mt4admusing port 59022. - Run the following command:
sudo ssh <backup_user@server> - When SSH asks whether you want to continue connecting, type
yes.
The root user now trusts the host key of the backup server. If you already accepted the key in Step 1, item 5, this step is complete.
If the host key of the backup server changes, trust the new key the same way.
Step 3: Set up the Segura™ system backup
- On the upper left corner of the screen, click the Grid Menu, identified by the nine squares, and select Orbit Server Manager.
- From the side menu, select Settings > Backup.
- Set the Enable application backup? parameter to Yes.
- Set the Mount a remote partition? parameter to Yes.
- Choose Send to a remote Linux server (via rsync) as the backup method.
- Enter the backup User.
- Enter the backup Server's hostname or IP address, E.g.,
myserver.comor10.10.1.5. - Enter the Remote path for the backup directory (e.g.,
/files/backup/senhasegura).
Step 4: Test Rsync backup
- Start an SSH session on your Segura™ server as the user
mt4admusing port59022. - Run the command
sudo orbit backup create. - The command will return an output with the Rsync confirmation and transfer time. If the backup fails, the command ends with an error message and the backup log records the reason.
- Check if you can see the files in the Remote path specified for the backup server.
Backup logs
To check the backup logs, follow these steps:
- Start an SSH session in your Segura™ server as the user
mt4admusing port 59022. - Run the following command:
tail -f /var/log/orbinibkp.log
Each line of the log has the following format:
[YYYY-MM-DD HH:MM:SS]: <tenant> <DB|FILE|BACKUP> <INFO|ERROR> <message>
For example:
[2026-10-21 17:22:09]: senhasegura DB INFO Database backup performed successfully
You can also view the log in Orbit Server Manager. See Backup logs.