Skip to main content
Version: 2.6

Backup on NFS shares

Portworx Backup now allows you to add your Network File System (NFS) shares as a backup target. This feature enables you to leverage your existing NFS storage infrastructure to back up and restore your application data. Portworx Backup supports NFS backup location based on NFSv4.

NFS server prerequisites

  • Ensure that read and write permissions are enabled for the required NFS shares for Portworx Backup to reach those shares.
  • Make sure that standard port 2049 is open for Portworx Backup to communicate with the NFS server.

Sample NFS server configuration

On NFS share for granting access to non-root user:

  1. Create a non-root user in the NFS server if the user does not exist.

  2. Update /etc/exports configuration file on the NFS server:

    <export path> <allowed_host(s)>(<comma separated mount options>)


    /mnt/nfsshare xx.xx.xx.xx(all_squash,anonuid=1001,anongid=1001,rw,sync)

    Where 1001 is the user ID of the non-root user created in step 1.

  3. Provide the ownership to the non-root user:

    chown -R <UID>:<GID> <NFS share/mount_path>


    chown -R 1001:1001 /mnt/nfsshare
  4. Export directories to NFS clients and restart the NFS server:

    sudo systemctl restart <daemon_name>
    sudo exportfs -a

Create NFS backup

To create a backup on NFS share as the backup location:

  1. From the home page, navigate to the application cluster to create backup of required application(s).

  2. In the application cluster’s Applications tab, select the application(s) you want to back up and then click Backup:

  3. In the Create Backup window, specify the required fields.

    Ensure you choose the NFS share based backup location from the Backup location drop-down and click Create.


    Backup location drop-down displays only the successfully validated NFS backup locations.

    The newly created backup appears in the Backups tab of the application cluster page. For more information on creating a backup, refer to Create a Backup.


    NFS-based backup location supports generic, manual, and scheduled backups.

    Related Topic

    Restore from NFS backup location

Was this page helpful?