Previous Next JavaScript must be enabled to correctly display this content

## Create Snapshot of the Store

This section describes how you can create a snapshot of the store.

Invoke the runadmin command to start the admin CLI and securely connect to the store running on host `phoenix581601` at port 8000. In the command below, `kvroot/security` is the security directory. The security directory contains all the security related files that were automatically generated by the securityconfig tool while creating the secure store using the `makebootconfig` command. For more details, see Configuring security in a data store.

    java -Xmx64m -Xms64m -jar lib/kvstore.jar runadmin -port 8000 -host phoenix581601localhost -security kvroot/security/client.security

Output:

    Logged in to Admin as anonymous
    Connected to Admin in read-only mode
    kv->

Create a snapshot of the store. For more details, see Backing Up the Store.

    snapshot create -name Wednesday

Output:

    Created data snapshot named 250514-072244-Wednesday on all 8 components
    Successfully created snapshot on RNs: admin1, admin2, rg1-rn1, rg1-rn2, rg2-rn1, rg2-rn2, rg3-rn1, rg3-rn2
    Successfully backed up configurations on: sn1, sn2

As indicated in the output message, snapshot folders are created in all the admin and replication nodes that you saw in the ping output. This confirms that the entire store has been successfully backed up.
The following folders are created:

    kvroot/mystore/sn1/admin1/snapshots/250514-072244-Wednesday
    kvroot/mystore/sn1/rg1-rn1/snapshots/250514-072244-Wednesday
    kvroot/mystore/sn1/rg2-rn1/snapshots/250514-072244-Wednesday
    kvroot/mystore/sn1/rg3-rn1/snapshots/250514-072244-Wednesday
    kvroot1/mystore/sn2/admin2/snapshots/250514-072244-Wednesday
    kvroot1/mystore/sn2/rg1-rn2/snapshots/250514-072244-Wednesday
    kvroot1/mystore/sn2/rg2-rn2/snapshots/250514-072244-Wednesday
    kvroot1/mystore/sn2/rg3-rn2/snapshots/250514-072244-Wednesday