4.7.3. Procedure – Creating a backup policy using NFS

The NFS backup method connects to a shared directory of the target server with the Network File Share protocol.

The version of NFS used is automatically detected. All versions of NFS, up to and including NFS version 4 protocol, are supported.

  1. Navigate to Policies > Backup & Archive/Cleanup and click in the Backup policies section to create a new backup policy.

  2. Enter a name for the backup policy (for example config-backup).

  3. Enter the time when the backup process should start into the Start time field in HH:MM format (for example 23:00).

  4. Enter the IP address or the hostname of the remote server into the Target server field (for example backup.example.com).

    Use an IPv4 address.

  5. Select NFS from the Target settings radio buttons.

    Figure 4.23. Policies > Backup & Archive/Cleanup > Backup policies — Configuring NFS backups

    Policies > Backup & Archive/Cleanup > Backup policies — Configuring NFS backups
  6. Enter the domain name of the remote server into the Target server field.

  7. Enter the name of the NFS export into the Export field.

    PSM saves all data into this directory, automatically creating the subdirectories. Audit-trail backups are stored in the data, configuration backups in the config subdirectory.

  8. The remote server must also be configured to accept backups from PSM.

    Add a line that corresponds to the settings of PSM to the /etc/exports file of the backup server. This line should contain the following parameters:

    • The path to the backup directory as set in the Export field of the PSM backup policy.

    • The IP address of the PSM interface that is used to access the remote server. For more information on the network interfaces of PSM, see Section 4.3, Network settings.

      Use an IPv4 address.

    • The following parameters: (rw,no_root_squash,sync).

    Example 4.1. Configuring NFS on the remote server

    For example, if PSM connects the remote server from the 192.168.1.15 IP address and the data is saved into the /var/backups/PSM directory, add the following line to the /etc/exports file:

    /var/backups/PSM 192.168.1.15(rw,no_root_squash,sync)
  9. On the remote server, execute the following command:

    exportfs -a

    Verify that the rpc portmapper and rpc.statd applications are running.

  10. To receive e-mail notification of the backup, select the Send notification on errors only or the Send notification on all events option. Notifications are sent to the administrator e-mail address set on the Management tab.

    To include the list of files in the e-mail, select Send notification on all events and enable the Include file list option. However, note that if list is very long (for example, PSM stores over 20000 audit trails), the PSM web interface might become unaccessible. In this case, set the Maximum number of files in notification lower. After this number has been reached, file names will be omitted from the notification.

    Note

    This e-mail notification is different from the one set on the Alerting & Monitoring tab. This notification is sent to the administrator's e-mail address, while the alerts are sent to the alert e-mail address (see Section 4.6, Configuring system monitoring on PSM).

  11. Click .

  12. To assign the backup policy to a connection, see Procedure 4.7.5, Creating data backups.