Knowledge Base: Backup : Backup / Restore of NFS
 
Backup / Restore of NFS
Creation Date: December 10. 2007
Revision Date: February 17, 2010
Product: DS‑Client (Linux & Mac)
Summary
This article discusses various backup/restore issues for NFS backup sets using the “NAS, UNIX-SSH, NFS, Local File System” backup type.
For instructions to create this kind of backup set, see: “NAS, UNIX-SSH, NFS, or Local File System backup sets (Linux or Mac)”
Configuring a source machine for backup through NFS using Linux DS-Client
NOTE:  The following are suggestions that do not take into consideration network security requirements. Consult your network administrator and NFS documentation for full details.
1. To backup a source machine that supports NFS (version 3 or higher), the NFS source machine must be configured to export the NFS share (assuming the source machine is an NFS server).
2. To verify if the source server is exporting the NFS share, run the following command on DS-Client:
Shell> rpcinfo –p NFS_server_address
3. If it is working, “nfs” should be listed in the output, and you should be able to connect to the NFS share via Linux / Mac DS-Client. Otherwise continue with step 4.
4. You only need to edit /etc/exports to get NFS to work with DS-Client. This file is on the source machine, and contains a list of entries. Each entry indicates a volume that is shared and how it is shared. Check the man pages (man exports) for a complete description of all the setup options for the file, although the description here will probably satisfy most requirements.
An entry in /etc/exports will typically look like this:
directory machine1(option11,option12)
For example:
/ 192.168.1.250(rw,no_root_squash)
The above line allows the DS-Client machine with the IP address 192.168.1.250 to have read and write access to the / folder. If the option ‘no_root_squash’ is selected, then ‘root’ on the DS-Client machine will have the same level of access to the files on the NFS share as ‘root’ on the NFS server.
5. Save the file and restart the NFS daemon with the following command:
Shell> /etc/init.d/nfs restart
Now, the DS-Client machine should be able to connect to the NFS share.