To convert a snapshot to XML (so that it can be re-imported into another SLEE), run the snapshot-to-export script. To convert the raw data of snapshot from rhino-export result, run the convert-export-snapshots-to-xml script.

snapshot-to-export

Options

$ ~/rhino/client/bin/snapshot-to-export
Snapshot .zip file or directory required
Syntax: snapshot-to-export <snapshot .zip | snapshot directory>
  <output .xml file> [--max max records, default=all]

Example

$ ~/rhino/client/bin/snapshot-to-export snapshots-backup/snapshots/ActivityTestConfigurationTable ActivityTestConfigurationTable.xml
Creating profile export file ActivityTestConfigurationTable.xml
[###########################################################################################################] converted 3 of 3
[###########################################################################################################] converted 3 of 3

Created export for 3 profiles in 0.1 seconds

Notes

The snapshot-to-export script converts a single profile table snapshot.

If you exported all profile tables (by passing the --all flag to rhino-snapshot), run snapshot-to-export against each subdirectory of the output. For example, if you ran this command to create the set of profile snapshots:

~/rhino/client/bin/rhino-snapshot -h localhost --outputdir snapshots-backup --all

…​then you would run commands such as the following to convert all the tables:

~/rhino/client/bin/snapshot-to-export snapshots-backup/ActivityTestConfigurationTable
Creating profile export file snapshots-backup/ActivityTestConfigurationTable.xml
[############################################################################################################] converted 3 of 3
[############################################################################################################] converted 3 of 3

Created export for 3 profiles in 0.1 seconds

~/rhino/client/bin/snapshot-to-export snapshots-backup/sis_configs_sip
Creating profile export file snapshots-backup/sis_configs_sip.xml
[############################################################################################################] converted 2 of 2
[############################################################################################################] converted 2 of 2

Created export for 2 profiles in 0.9 seconds
...

convert-export-snapshots-to-xml

Options

$ ~/rhino/client/bin/convert-export-snapshots-to-xml
Export directory name must be specified
Syntax: convert-export-snapshots-to-xml <export directory>

Example

$ ~/rhino/client/bin/convert-export-snapshots-to-xml exports/
Converting table test-profile-table from snapshot exports/snapshots/test_profile_table to XML test_profile_table.xml
Previous page Next page
Rhino Version 2.7.0