How to mount a backup partition via CIFS or NFS

Prev Next

This document describes how to mount a backup partition via CIFS or NFS.

Requirements

  • The backup server must be configured with a shared folder.
  • Firewall rules must be open between the backup and the Segura™ server.
  • Credentials must have write permission.
  • A Segura™ server that does not use Network Connector. Network Connector does not support CIFS or NFS.
  • 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.
Attention

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:

  1. Single Point of Failure: If the appliance fails, you could lose both the data and the backup.
  2. 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.
  3. 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 CIFS or NFS

To mount a backup partition via CIFS or NFS, follow these steps:

  1. On the upper left corner of the screen, click the Grid Menu, identified by the nine squares, and select Orbit Server Manager.
  2. From the menu, select Settings > Backup.
  3. Set the Mount a remote partition? parameter to Yes.
  4. Under How will the how to send the backup files? select Mounting a remote partition (via CIFS or NFS).
  5. Click Add remote partition. This will open a new window.
  6. Populate the Remote host and Remote path fields with the details of the server that will store the backup. For example:
  • Remote host: myserver.com or 10.10.1.5.
  • Remote path: /files/backup/senhasegura.
Info

For Windows servers, verify the network path of the folder.

  1. Select the protocol:
  • Samba (CIFS): requires a user with enough privilege to write files in the directory specified in the Remote path. Otherwise, Segura™ will not be able to mount the partition or create the backup. Optional: add a domain if your host server requires it.
  • Network File System (NFS): if you choose an NFS mount, do not forget to add the IP address of the Segura™ server to the settings of your Remote NFS Host. Otherwise, Segura™ will not be able to mount the partition or create the backup.
Info

The share password can contain special characters, up to 256 characters. It cannot contain control characters, such as a tab or a line break, or the sequences {{, {%, and {#. When you save, Orbit validates the fields; if a value is not accepted, a message appears next to the field and the settings are not saved.

Upon completing the steps, the system will generate a file named write_test, indicating that the partition has write permissions.

How the backup uses the remote partition

Each time the backup runs, it checks that the remote partition is mounted at /srv/backup_remoto and responding before it copies any file. If the partition is not mounted, or does not respond within 30 seconds, the backup:

  • Copies no files and ends with an error.
  • Keeps the database dumps in the local staging area of the appliance, where they continue to rotate.
  • Records the reason in the backup log. See Backup logs.
  • Opens the Backup failed incident in Orbit. See About resource monitoring in Orbit.

To recover, check the partition with orbit partition --show and mount it again with orbit partition --remount. See How to configure remote partitions. The incident closes after the next successful backup.

How to change the remote partition later

You can change the password, protocol, or destination of a partition that is already mounted:

  1. In Orbit Server Manager, select Settings > Backup and click Edit.
  2. Change the remote partition fields and click Save.

Orbit unmounts the current partition, applies the new settings, and mounts the new partition. The next backup copies to the new destination.

If the new partition cannot be mounted, for example because the password is wrong or the server is unreachable, Orbit:

  • Restores the previous partition configuration and mounts the previous partition again.
  • Marks the configuration request as ERROR, with the reason.
  • Sends the configuration request notification.

To change only the password of a mounted CIFS share, enter the new password and click Save. Orbit applies it to the mounted partition; you do not need to turn the remote partition off and on again.

Turn off the remote partition

To stop using the remote partition, set Mount a remote partition? to No and click Save. Orbit unmounts the partition and removes its configuration. Until you configure a new destination, the backup copies no files and the Backup failed incident opens.