- List the name-based mapping rules and save them to a backup file.
$ idmap list >output-file
For more information about the
idmap listcommand, see the
idmap(8) man page.
- 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
- Run the idmap command with the -f option to read and execute the idmap subcommands from the backup file.
$ idmap -f output-file