I would like to export from RInsight (without stopping the server) the Users and Groups definitions.
How can I do that ?
I notice that the utility impexp.sh is provided for RapidConnector and RapidInformer, but not for RapidInsight.
| Attachment | Size |
|---|---|
| getGroupsAndUsers.groovy | 1.01 KB |

Unfortunately, RapidInsight
Unfortunately, RapidInsight does not include the import/export utility.
The command file that was fed into rsbatch utility can be used for documentation purposes and to re-execute if needed.
Also, rasDB and data directories can be backed up and the data ( all data, not only User and Group data) can be restored by copying these back to their original location under RapidInsight and restarting the server.
Could you provide "get"
Could you provide "get" webservices for users and groups ?
I don't need to export everything, but only the users and groups.
There are many scenario where such a capability is required:
1) I need to rebuild a system from scratch, and don't want to restore a backup
2) when migrating from RInsight V2.1 to the next release
Admin staff will never keep an up-to-date list of users and groups.
Another alternative could be
Another alternative could be to develop a groovy script that dumps in a file the list of current Groups (with roles and membership) and Users (with their password). I could then run it as a periodic script to automate the backup, and that's it !
Managed Objects are
Managed Objects are persisted in the data/rapidinsight directory. rasDB and the rest of the contents of the data dir is used for storing User/Group/Role/Segmentation Filter information. Therefore, if the goal is to backup and restore only the user/group information, backup rasDB and data directory, but exclude the data/rapidinsight directory which stores the managed objects.
Assuming that the system is being rebuilt, copy the rasDB folder and the data folder without the rapidinsight subfolder and upon restart, you will see your users and groups as they were set up before.
If the scenario is to upgrade RI to a later release, use the attached script (getGroupsAndUsers.groovy). This script can be copied under scripts/operations directory to get Group/Role/Segmentation Filter and User information. This script will not return the passwords. If the upgrade does not require a schema change, and it ususally does not, rasDB can simply be copied as before. If there is a schema change, the output of the getGroupsAndUsers.groovy can be used to create users/groups but the passwords will have to be reset. If it is requred to set the passwords to their previous values, the unencrypted passwords should be saved separately as the system does not allow access to unencrypted passwords stored.