JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Naming and Directory Services (NIS+)
search filter icon
search icon

Document Information


Part I About Naming and Directory Services

1.  Name Service Switch

Part II NIS+ Setup and Configuration

2.  NIS+: An Introduction

3.  NIS+ Setup Scripts

4.  Configuring NIS+ With Scripts

5.  Setting Up the NIS+ Root Domain

6.  Configuring NIS+ Clients

7.  Configuring NIS+ Servers

8.  Configuring an NIS+ Non-Root Domain

9.  Setting Up NIS+ Tables

Part III NIS+ Administration

10.  NIS+ Tables and Information

11.  NIS+ Security Overview

12.  Administering NIS+ Credentials

13.  Administering NIS+ Keys

14.  Administering Enhanced NIS+ Security Credentials

15.  Administering NIS+ Access Rights

16.  Administering NIS+ Passwords

17.  Administering NIS+ Groups

18.  Administering NIS+ Directories

19.  Administering NIS+ Tables

20.  NIS+ Server Use Customization

21.  NIS+ Backup and Restore

Backing Up Your NIS+ Namespace With nisbackup

nisbackup Syntax

What nisbackup Backs Up

NIS+ Backup Target Directory

Maintaining a Chronological Sequence of NIS+ Backups

Backing Up Specific NIS+ Directories

Backing Up an Entire NIS+ Namespace

NIS+ Backup Directory Structure

NIS+ Backup Files

Restoring Your NIS+ Namespace With nisrestore

Prerequisites to Running nisrestore

nisrestore Syntax

Using nisrestore

Using NIS+ Backup/Restore to Set Up Replicas

How to Use NIS+ Backup/Restore to Set Up Replicas

Replacing NIS+ Server Machines

How to Replace NIS+ Server Machines

22.  Removing NIS+

23.  Information in NIS+ Tables

24.  NIS+ Troubleshooting

A.  NIS+ Error Messages

About NIS+ Error Messages

Common NIS+ Namespace Error Messages

B.  Updates to NIS+ During the Solaris 10 Release

Solaris 10 and NIS+



Restoring Your NIS+ Namespace With nisrestore

The nisrestore command recreates NIS+ directory objects to match the data stored in backup files created with the nisbackup command. This command can be used to restore NIS+ servers, replace directory objects that have become corrupted, or down load NIS+ data on to a new NIS+ server.

Prerequisites to Running nisrestore

In order to use nisrestore the target machine that will be receiving the NIS+ data from nisrestore must have already been set up as an NIS+ server. For a detailed description of setting up NIS+ servers, see Chapter 4, Configuring NIS+ With Scripts.

The prerequisites to using nisrestore are:


Caution - In addition to the preceding three prerequisites, the rpc.nisd daemon must not be running on the machine. If necessary, you must kill rpc.nisd, by stopping the NIS+ service, before running nisrestore.

nisrestore Syntax

The nisrestore command uses the following syntax:

nisrestore [-fv][-a][-t] backupdir [directory_objects]


The nisrestore command takes the following options.

Table 21-2 Options for the nisrestore Command

All. Restores all of the NIS+ directory objects contained in the backup directory.
Forces the restoration without validating that the server is listed in the directory object's serving list. This option must be used when restoring a root master server or if you get an “unable to lookup object” type of error.
Verbose mode. This mode provides additional information
This option lists all of the NIS+ directory objects stored in the backup directory. No restoration of objects takes place.

Using nisrestore

To restore NIS+ data from NIS+ backup files, use the nisrestore command.

For example, to restore the 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 below:

replica1# nisrestore /var/master1_bakup

The following points apply to nisrestore: