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(8) man page.

  2. 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