Documentation update for importing a project configuration

Technote (troubleshooting)


Problem(Abstract)

There is a correction to the commands used to import a project configuration.

Resolving the problem

Importing a project configuration

You can import the configuration data for a project by using the management console from the command line.

Before you begin

The project that you want to import in to must exist in IBM® Social Media Analytics.

You must know the value of the internal project ID for the project that you want to import in to. Find the value by searching the cci_topology.xml file for type="Project" where property name="contextRoot" and value=project ID as displayed on the Welcome page. The internal project ID is the value where property name="projectID". In the following example excerpt from the cci_topology.xml file, the project ID as displayed on the Welcome page is "myproject" and the internal project ID is "pro00001":

<resource id="project1" state="Complete" type="Project">
<properties>
<property name="projectId" value="pro00001"/>
<property name="contextRoot" value="myproject"/>

About this task

You can import one project configuration at a time.

Ensure that users are not working in Configuration when you perform this task.

Log files for the import process are stored in install_location/cci_tmgmt/BackupRestoreUtility/logs directory.

Procedure

1. Log in to the user interface node, as the cciusr user.
2. Type the following command:

./cci_cli.sh -u status=complete -r 'post:/projects/internal_project_ID/importConfiguration:
{"file":"file_name","datafetcher":true|false,"hotwords":true|false,
"sentiments":true|false,"typesconcepts":true|false,"mediasets":true|false}'

Where internal_project_ID is the internal project ID that you determined in the About this task section and file_name is the name of the file to import from. You can also specify an absolute or relative path with the file name. If you specify a relative path, the path is relative to the path that is stored in the cci_topology.xml file. Do not insert blanks in the text that occurs between the braces ({}). In the following example the queries, hotwords, types, and concepts from /home/cciusr/Project1_backup.json are imported in to a project named Project1.

./cci_cli.sh -u status=complete -r 'post:/projects/Project1/importConfiguration:
{"file":"/home/cciusr/Project1_backup","datafetcher":true,
"hotwords":true,"sentiments":false,"typesconcepts":true,"mediasets":false}'


Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Social Media Analytics

Software version:

1.2

Operating system(s):

Linux

Software edition:

All Editions

Reference #:

1628087

Modified date:

2013-04-26

Translate my page

Machine Translation

Content navigation