To create a snapshot (for example, to extract the state of an individual profile table to a snapshot directory), run the rhino-snapshot script.

Options

$ ~/rhino/client/bin/rhino-snapshot
Rhino Snapshot Client

    This tool creates snapshots of currently installed profile tables.

Usage:
    rhino-snapshot [options] <action> [options] [<profile table name>*|--all]

Valid options:
    -? or --help             - Display this message

    -h <host>                - Rhino host
    -p <port>                - Rhino port
    -u <username>            - Rhino username
    -w <password>            - Rhino password

Valid actions:
    --list                   - list all profile tables
    --info                   - get profile table info only (do not save any data)
    --snapshot               - snapshot and save profile table data

Action modifier options:
    --namespace <name>       - restrict action to the given namespace
                               use an empty string to denote the default namespace
    --outputdir <directory>  - sets the directory where snapshot files are created
                               defaults to the current working directory
    --zip                    - save to .zip archives instead of directories

    --all                    - snapshot all profile tables

Example

ubuntu@ip-172-31-25-31:~/RhinoSDK/client/bin$ ./rhino-snapshot -h localhost --snapshot --outputdir snapshot-backup --all
Rhino Snapshot Client

Connecting to node: localhost:1199
Connected to node: 101
Snapshot server port is: 22000
Taking snapshot for OpenCloud_ShortCode_AddressListEntryTable
Saving OpenCloud_ShortCode_AddressListEntryTable.jar (1,335kb)
Streaming profile table 'OpenCloud_ShortCode_AddressListEntryTable' snapshot to OpenCloud_ShortCode_AddressListEntryTable.data (3 entries)
[###############################################################################################################################################################################################################################] 3/3 entries

Taking snapshot for SCCCamelToIMSReOriginationConfigProfileTable
Saving SCCCamelToIMSReOriginationConfigProfileTable.jar (4,937kb)
Streaming profile table 'SCCCamelToIMSReOriginationConfigProfileTable' snapshot to SCCCamelToIMSReOriginationConfigProfileTable.data (2 entries)
[###############################################################################################################################################################################################################################] 2/2 entries

Taking snapshot for OpenCloud_RegistrarPublicIdToPrivateIdTable
Saving OpenCloud_RegistrarPublicIdToPrivateIdTable.jar (1,398kb)
Streaming profile table 'OpenCloud_RegistrarPublicIdToPrivateIdTable' snapshot to OpenCloud_RegistrarPublicIdToPrivateIdTable.data (1 entries)
[###############################################################################################################################################################################################################################] 1/1 entries

...

Extracted 1,626 of 1,626 entries (251kb)
Snapshot timestamp 2016-10-31 15:08:46.917 (1477926526917)
   Critical region time     : 0.003 s
   Request preparation time : 0.090 s
   Data extraction time     : 113.656 s
   Total time               : 113.746 s
Previous page Next page
Rhino Version 3.0.0