restore NIS+ data from NIS+ backup files, use the nisrestore command.
For example, to restore the org_dir.doc.com. directory object on the replica1 server, you
would log in as root on replica1, make sure that the prerequisites
described in Prerequisites to Running nisrestore have been met and then run nisrestore as shown
replica1# nisrestore /var/master1_bakup org_dir.doc.com.
The following points apply to nisrestore:
namespace. To restore a damaged or corrupted NIS+ namespace, the nisrestore command must be run on all of the servers for the NIS+
directory objects you are restoring.
If you get an error message telling you that nisrestore cannot
verify or look up needed data, then you must use the -f option.
For example, to reload NIS+ data on a root master server named master1, you would enter the following.
master1# nisrestore -f -a /var/master1_bakup
When specifying the NIS+ directory objects to be restored, you can use full
or partially qualified directory names.