- 2 minutes to read
- Print
- DarkLight
- PDF
How to mount a backup partition via Rsync
- 2 minutes to read
- Print
- DarkLight
- PDF
In this article, you’ll find instructions on 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.
Rsync backups require an SSH key. Add the public key of your senhasegura root user to the list of authorized keys in the backup user’s device.
Always ensure backups are saved in a different location to protect sensitive information and maintain business continuity.
For senhasegura 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 senhasegura server as the user
mt4adm
using 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_keys
file of the backup user:vim /home/rsync/.ssh/authorized_keys
Confirm the SSH configuration by executing:
sudo ssh <backup_user@server>
Step 2: Set up senhasegura's system backup
- On the upper left corner of the screen, click the Grid Menu, identified by the nine squares, and select Orbit Config 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.com
or10.10.1.5
. - Enter the Remote path for the backup directory (e.g.,
/files/backup/senhasegura
).
Step 3: Test Rsync backup
- Start an SSH session on your senhasegura server as the user
mt4adm
using port59022
. - Run the command
sudo orbit backup create
. - The command will return an output with the Rsync confirmation and transfer time.
- 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 senhasegura server as the user
mt4adm
using port 59022. - Run the following command:
tail -f /var/log/orbinibkp.log