Backing up and restoring maps

Applies To: Windows Server 2003 R2

To backup and restore data from the Windows interface

  1. Open Microsoft Services for Network File System: click Start, point to Programs, point to Administrative Tools, and then click Microsoft Services for Network File System.

  2. If necessary, connect to the computer you want to manage.

  3. To back up maps, right-click User Name Mapping and select Backup Maps.

    Type the fully qualified path and name of the file to which you want to back up the maps, or click Browse to find the file. When you have identified or found the file, click Backup.

  4. To restore maps, right-click User Name Mapping and select Restore Maps.

    Type the fully qualified path and name of the file from which you want to restore maps, or click Browse to find the file. When you have identified or found the file, click Restore.

    The following settings and maps are backed up and restored:

    • Configuration type (either Network Information Service [NIS], or password and group files)

    • Domain maps

    • Advanced user and group maps

    • Password and group files, if applicable

    Note

    If you back up settings and maps on a remote computer that is configured to use password and group files, the password and group maps are not backed up.

    If you are using password and group files as the source for UNIX user and group names, and if you are running User Name Mapping in a server cluster or a server pool, you must perform the following tasks after restoring maps:

    • You must copy the restored password and group files to the appropriate directories on all nodes in the server cluster or pool. On a server cluster, the files must be copied to directories with identical path names on each node in the cluster.

    • After copying the files on a server pool, you must configure each node in the pool to use the files in the directories where you copied the files.

    • After copying the files on a server cluster, you must configure User Name Mapping on one node to use the files in the directory where you copied the files, and then click Apply. This will cause the updated settings to be replicated to other nodes in the cluster.

To backup and restore data from the command line

  1. Open the command prompt.

  2. At the command prompt, type one of the following:

    • To create a backup file and perform the backup, type:

      mapadmin [ComputerName] [–uUser**] [–pPassword] backup**file

    • To restore, type:

      mapadmin [ComputerName] [–uUser**] [–pPassword] restore** file

    Argument Description

    ComputerName

    The name of the computer you want to manage.

    User

    The name of the user who has administrative privileges on the computer, if different from the current user.

    Password

    The password for the person who has administrative privileges on the computer, if different from the current user.

    File

    The fully qualified path and name of the file to be used for backup.

    The following settings and maps are backed up and restored:

    • Configuration type (either Network Information Service (NIS), or password and group files)

    • Domain maps

    • Advanced user and group maps

    • Password and group files, if applicable

    Note

    To view the complete syntax for this command, at a command prompt, type: mapadmin /? If you back up settings and maps on a computer configured to use password and group files, the password and group maps are not backed up.

    If you are using password and group files as the source for UNIX user and group names, and if you are running User Name Mapping in a server cluster or a server pool, you must perform the following tasks after restoring maps:

    • You must copy the restored password and group files to the appropriate directories on all nodes in the server cluster or pool. On a server cluster, the files must be copied to directories with identical path names on each node in the cluster.

    • After copying the files on a server pool, you must configure each node in the pool to use the files in the directories where you copied the files.

    • After copying the files on a server cluster, you must configure User Name Mapping on one node to use the files in the directory where you copied the files, and then click Apply. This will cause the updated settings to be replicated to other nodes in the cluster.