Through the backup module, you can perform new backups, restore a specific backup configure backup schedule.
The backup files of Segura™ are protected by encryption. Restoring a backup can have impacts on the cluster structure and, in extreme cases, may result in the loss of access to sensitive information. If you need to perform a backup restoration, please contact our support team.
Commands:
backup create: Create a new backupbackup daily: Run the scheduled daily backupbackup recover: Recover system to a backup pointbackup time: Configure the system backup daily time
Flags:
-h,--help: Show context-sensitive help.
Run, restore, and configure the backup schedule
Run a backup
Segura™ will backup two databases managed by MariaDB:
- mt4: Database with platform information.
- senhasegura: Database with Segura™ information.
Run the orbit backup create command to perform a backup on both databases. To run it without the confirmation prompt, add --force.
Each run works in this order:
- Exports each database to a compressed, encrypted dump file. A dump file is kept only when the export, compression, and encryption all complete. If the export of one database fails, the other databases and the file copy still run, and the last successful dump of the failed database is kept.
- Removes old dumps of each database after its new dump completes.
- Checks that the backup destination is a remote partition (CIFS/SMB or NFS) that is mounted and responding.
- Copies the database dumps and, when session file backup is enabled, the session recordings to the remote destination.
If the destination check fails, nothing is copied and the database dumps stay on the appliance until a later run copies them.
A backup that fails ends with a non-zero exit code, records the reason in the backup log, and opens the Backup failed incident in Orbit. For details about the incident, see About resource monitoring in Orbit and How to respond to resource incidents in Orbit.
Only one backup runs at a time on the appliance. If you start a backup while another one is running, the command ends with an error that names the backup already running.
Some information has been suppressed from this log. But you will see where the backup is executed and where it is copied to at the end of the process.
orbit backup create --force
[2026-10-21 17:22:07]: senhasegura DB INFO Starting database backup to senhasegura-db-2026-10-21_172207mt4.sql.gz
[2026-10-21 17:22:07]: senhasegura DB INFO Cleaning up old backup files of mt4
[2026-10-21 17:22:07]: senhasegura DB INFO Starting database backup to senhasegura-db-2026-10-21_172207senhasegura.sql.gz
[2026-10-21 17:22:09]: senhasegura DB INFO Cleaning up old backup files of senhasegura
[2026-10-21 17:22:09]: senhasegura DB INFO Database backup performed successfully
[2026-10-21 17:22:09]: senhasegura FILE INFO Starting the copy of the database dumps to the destination, as a mirror
[2026-10-21 17:22:09]: senhasegura FILE INFO The copy of the database dumps to the destination is complete
[2026-10-21 17:22:09]: senhasegura FILE INFO Starting the copy of the session recordings to the destination
[2026-10-21 17:22:09]: senhasegura FILE INFO The copy of the session recordings to the destination is complete
The log file is /var/log/orbinibkp.log, and you can also view it in Orbit. For more information, see Backup Logs.
Backup messages
| Message | What it means | What to do |
|---|---|---|
The remote backup partition is not mounted (the destination is on the local ext4 filesystem) |
The backup destination is not on a mounted remote partition. Nothing was copied. | Check the partition with orbit partition --show and mount it again with orbit partition --remount. See How to configure remote partitions. |
The remote backup partition did not answer |
The remote partition is mounted but its server did not respond in time. Nothing was copied. | Check that the file server is reachable, then run orbit partition --remount. |
another backup is already running on this appliance (backup of tenant X, pid N, started at …) |
Another backup was running when this one started. | Wait for the running backup to finish and run the command again. |
…were left for the next run |
Some session recordings were removed while the copy was running, for example because the session was still recording. The copy counts as complete. | No action needed. The next run copies them. |
The file backup mode TAR-INC is no longer supported. Save the backup settings in Orbit again. |
The backup configuration uses a file backup mode that was removed. The same message names TAR-FULL, SCP, or FTP when one of them is configured. |
In Orbit, open the backup settings and save them again. |
Host key verification failed |
The appliance does not trust the host key of the remote Linux server used as the Rsync destination. | See How to mount a backup partition via Rsync. |
Run the scheduled daily backup
The operating system task scheduler (cron) runs orbit backup daily every hour. The command runs the backup only at the hour configured with orbit backup time. At any other hour, it ends with the message The backup process is only enabled to be executed every day at N o'clock, with exit code 0, and no backup runs.
Use the --tenant option to choose which tenants to back up:
--tenant all: backs up every active tenant. This is the option the scheduler uses. Disabled tenants are not backed up.--tenant <tenant name>: backs up one tenant. If the tenant is not active, the command fails with the message<tenant> is not an active tenantand records it in the backup log.- Without
--tenant: backs up only the senhasegura tenant.
The mt4 database is backed up once, together with the senhasegura tenant.
orbit backup daily --tenant all
If another backup is running at the scheduled hour, the daily backup waits up to one hour for it and shows Waiting up to 1h0m0s for the backup already running (…). If the running backup does not finish in that time, the daily backup ends with No backup ran: another backup is already running on this appliance (…) and records it in the backup log.
When the application uses an external database server, the backup does not export the database on the appliance, because the external server is responsible for backing it up. The log shows The database runs on an external server, which backs it up; it is not dumped on the appliance, the file copy still runs, and the run does not count as a failure.
Restore a backup
This procedure restores the database completely, including data and structure, for the desired period of time. Make sure to restore all other application binaries, in case a system update has occurred between the current period and the desired period in the past. The application binary can be restored using the Debian APT tool.
To restore the backup, you must have the original backup files available and ensure that the information to be restored is from a nearby moment to not impact the scope of the devices and ensure the integrity of privileged information.
You should first restore the mt4 base and subsequently the senhasegura base.
mt4adm@vmdf-giskard:~$ sudo orbit backup recover
--database=mt4
--file=/******/senhasegura-db-2020-06-09_203007mt4.sql.gz
Restoring this file you will replace all the database data.
Are you sure you want to restore this backup file: y
mt4adm@vmdf-giskard:~$ sudo orbit backup recover
--database=senhasegura
--file=/******/senhasegura-db-2020-06-09_203007senhasegura.sql.gz
Restoring this file you will replace all the database data.
Are you sure you want to restore this backup file: y
Configure backup schedule
Use this command to set the hour of the daily backup. The Linux task scheduler (cron) runs orbit backup daily every hour, and the backup runs only at the hour that you set.
If no time is set, or the configured time is not valid, the backup will be scheduled to occur at 5 a.m.
To set the hour, run orbit backup time with the --hour option, in the 24-hour format (0 to 23). Values outside this range are rejected, and the configured time does not change.
To view the currently configured time for the backup, use the --show option.
To run the command without a confirmation prompt, use the --force option.
orbit backup time --hour=STRING
Configure the system backup daily time
Flags:
-h, --help Show context-sensitive help.
--hour=STRING Backup daily time: 0 to 23
--show Show the backup daily time
--force Force the command execution, never prompt