Go to main content

Managing SMB File Sharing and Windows Interoperability in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

Saving and Restoring Name-Based Mapping Rules

You might need to back up and restore your name-based mapping rules.

How to Back Up and Restore Name-Based Mapping Rules

  1. List the name-based mapping rules and save them to a backup file.
    # idmap list >output-file

    For more information about the idmap list command, see the idmap(1M) man page.

  2. (Optional) Remove all the existing name-based mapping rules. If you attempt to restore the existing rules, duplicate entries might prevent you from restoring the backed up rules.
    # idmap remove -a
  3. Run the idmap command with the –f option to read and execute the idmap subcommands from the backup file.
    # idmap -f output-file