B.0 Backing Up and Restoring Data Collection Policies

You can back up and restore the Agent Manager data collection policies by using the content backup utility. The content backup utility is available in the Onepoint folder under the Agent Manager installation path.

The following table describes the parameters that you need to specify to run the content backup utility:

Parameter

Description

-d:<Database Server Name>

Specify the name of the database server that contains the AgentManager database.

-a:{I | E}

Specify the action you want to perform. Specify E to back up and I to restore the data collection policies.

-f:<Filename>

Specify the filename to export or import the backed up data. When exporting the backed up data, if you specify the name of a file that already exists, the backup utility overwrites the file.

-c:{A | O}

Specify the database containing the data collection policies. Specify A for AgentManager database and O for Legacy Security Manager Onepoint database.

[-e]

(Optional) If you specify this option, the backup utility encodes the data during backup to prevent data corruption.

To back up or restore the Agent Manger data collection policies, run the backup utility using the following command:

<Installation_path>\OnePoint\ContentBackup.exe -d:<Database Server Name> -a:{I | E} -f:<Filename> -c:{A | O} [-e]

For example, if you want to back up the data collection policies in the AgentManager database located in the database server 172.16.0.0 and export the data into the file C:\backup_timestamp.xml, use the following command:

C:\Program Files\NetIQ Agent Manager\AgentManager\ContentBackup.exe -d:172.16.0.0 -a:E -f:C:\backup_timestamp.xml -c:A

The backup utility generates a new file C:\backup_timestamp.xml, which contains the backed up data collection policies.

NOTE:When restoring the data collection policies, the backup utility deletes the existing data collection policies in the AgentManager database and replaces it with the backed up data. If an error occurs during restore, you might lose the existing data collection policies.

To import the data collection policies from the file C:\backup_timestamp.xml and restore them in the AgentManager database, use the following command:

C:\Program Files\NetIQ Agent Manager\AgentManager\ContentBackup.exe -d:172.16.0.0 -a:I -f:C:\backup_timestamp.xml -c:A