Backing up and restoring Feature Server
Backup and restoration of Feature Server data requires the deployment and execution of several Python scripts.
Prior to Feature Server backup, you must perform the Cassandra backup procedure. After Feature Server restoration, you restore the Cassandra data.
Backup
Feature Server backup requires script deployment and execution.
Script deployment
- On the master Feature Server instance, copy the jython-2.7b1.jar file from FS installation path\work\jetty-x.x.x.x-pppp-fs.war-_fs-any-\webapp\WEB-INF\lib to FS installation path\python\util.
- Open the console and navigate to FS installation path\python\util, which contains the scripts.
- Type the command to set the JYTHONPATH:
- Windows:
- set JYTHONPATH=FS installation path\python
- Linux:
- export JYTHONPATH=FS installation path/python
- Windows:
Script execution
The following Python scripts save data, such as User roles, User Voicemail Profiles assignment, and User Group Voicemail Profiles assignment, that is not related to or synchronized with Configuration Server.
The scripts create a csv file that you can analyze, edit as needed, and use as the input data for the scripts restoring the data not contained in Configuration Server.
To run each of the following scripts, type the command:
java -jar jython-2.7b1.jar scriptname.py script input parameters
User Feature Server Roles
The User Feature Server Roles script creates a csv file containing records for all users with Roles different from the default User role. The csv file later serves as the input for the Restoring User Roles procedure.
Every record of the user roles csv file contains user name, user ID, and the corresponding set of roles assigned to the user. User ID consists of the corresponding person DBID and Configuration Server GUID separated by ‘@’; for instance: 57426@dcc7a7ac-626a-40c7-b805-e14b71d438d9
csv file content example:
un00001 57426@dcc7a7ac-626a-40c7-b805-e14b71d438d9 User,Administrator,GroupMailboxAdministrator
un00003 57428@dcc7a7ac-626a-40c7-b805-e14b71d438d9 User,NoWUIMailboxAccess
un00002 57427@dcc7a7ac-626a-40c7-b805-e14b71d438d9 User,GroupMailboxAdministrator
Command example:
java -jar jython-2.7b1.jar saveUserRoles.py -H localhost -p 9160 -o savedUserRoles.csv
User Voicemail Profile Assignments
The User Voicemail Profile Assignments script creates a csv file containing records for all users with a Voicemail Profile other than the one assigned to them by System Profile. The csv file later serves as the input for the Restoring User Voicemail Profile Assignments procedure.
Every record of the user voicemail profile csv file contains user name, user ID and the corresponding ID of a Voicemail Profile assigned to the user. User ID consists of the corresponding person DBID and Configuration Server GUID separated by ‘@’; for instance: 57426@cb2fdedd-a57f-49e6-a54d-3f930eb1dfc5
csv file content example:
un00002 57427@dcc7a7ac-626a-40c7-b805-e14b71d438d9 11451ec2-d68a-4425-98eb-fbf22a24fc7a
un00001 57426@dcc7a7ac-626a-40c7-b805-e14b71d438d9 92a5fd17-2b4b-493d-8727-004625e0a112
un00001 57426@f521b229-f599-47d4-81fd-2fbf15b02809 11451ec2-d68a-4425-98eb-fbf22a24fc7a
un00003 57428@f521b229-f599-47d4-81fd-2fbf15b02809 92a5fd17-2b4b-493d-8727-004625e0a112
Command example:
java -jar jython-2.7b1.jar saveUserVmProfiles.py -H localhost -p 9160 -o savedUserVmProfiles.csv
User Group Voicemail Profile Assignments
The User Group Voicemail Profile Assignments script creates a csv file containing records for all user groups with a Voicemail Profile other than the one assigned to them by System Profile. The csv file later serves as the input for the Restoring User Group Voicemail Profile Assignments procedure.
Every record of the user group voicemail profile csv file contains group name, group ID and corresponding ID of a Voicemail Profile assigned to the user group. User group ID consists of the corresponding Agent Group DBID and Configuration Server GUID separated by ‘@’; for instance: 19613@dcc7a7ac-626a-40c7-b805-e14b71d438d9
csv file content example:
ag002 19613@dcc7a7ac-626a-40c7-b805-e14b71d438d9 92a5fd17-2b4b-493d-8727-004625e0a112
ag002 19613@f521b229-f599-47d4-81fd-2fbf15b02809 11451ec2-d68a-4425-98eb-fbf22a24fc7a
ag001 19612@f521b229-f599-47d4-81fd-2fbf15b02809 92a5fd17-2b4b-493d-8727-004625e0a112
Command example:
- java -jar jython-2.7b1.jar saveUsergroupVmProfiles.py -H localhost -p 9160 -o savedUsergroupVmProfiles.csv
