sepmd Utility Back Up the PMDB
The sepmd utility lets you back up the Policy Model database.
capamsc141
The sepmd utility lets you back up the Policy Model database.
This command has the following format:
sepmd {-bl|-ul} pmd sepmd -bd <pmd> <destination> sepmd -bh <pmd> <destination> <backup_host>
- -bdBacks uppmdto the directorydestination.
- -bhBacks uppmdto the directorydestinationfor Policy Models in a hierarchy. The backup modifies the PMDB subscribers so that the subscription still works when the backup is moved to thebackup_hosthost.
- -blLocks thepmdso that it does not propagate commands to subscribers.Use this command if the Policy Model has subscribers and you want to ensure that updates are not accepted while the backup is in process.
- -ulUnlocks a lockedpmd
- backup_hostDefines the name of the host where you intend to move the backup host to
- destinationDefines the name of the directory where you want the PMDB files to be backed up to
- pmdDefines the Policy Model database, which is located where specified by the _pmd_directory_ configuration setting.
Example: Back Up a PMDB
The following command backs up a PMDB named myPMDB to the /tmp/my_pmdb directory:
sepmd -bd pmdb /tmp/my_pmdb
You can now manage the PMDB as required:
selang -d /tmp/my_pmdb
Example: Back Up a PMDB with Subscribers
The following commands show you how to back up a PMDB that has subscribers and then move the PMDB to a different host:
- Lock the PMDB:sepmd -bl mainPMDBPrivileged Access Managerlocks the PMDB so that it does not send or receive updates.
- Back up the PMDB:sepmd -bh mainPMDB /tmp/my_pmdb host63Privileged Access Managerbacks up the PMDB to the /tmp/my_pmdbOn UNIX,Privileged Access Managerupdates subscribers.dat with the backup host name you specified.On Windows,Privileged Access Managercreates apmd.reg file, which is a dump of thepmdregistry settings with the Parent_Pmd configuration setting value changed to match the new host you specified.
- Unlock the PMDB:sepmd -ul mainPMDBPrivileged Access Managerunlocks the PMDB.
- Transfer the PMDB backup to its new host.The new host must have the same OS andPrivileged Access Managerversion as the current computer.
- (Windows only) Import the mainPMDB.reg file into the registry on the new host.You can now continue to use the PMDB as you typically would.