Previous Next JavaScript must be enabled to correctly display this content

## Restoring the Store

This section talks about restoring a data store from the backup.

We will now see how we can restore the backed-up data on to a new store. Let us create the new store with storage node 3 and storage node 4.

The storage nodes are on the host `phoenix581601` at ports 5000 and 6000. Start the storage node agents. For more details, see Configuring a single region data store.

Use the `configure -name` command to specify the name of the store.

The name of the new store must be same as the name of the store you backed up. In this case, use `mystore`.

Invoke the runadmin command to start the admin CLI utility to securely connect to the store running on the host `phoenix581601` at port 5000. In the command below, `kvroot2/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 5000 -host phoenix581601localhost -security kvroot2/security/client.security

Output:

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

Use the `configure -name` command to specify the name of the store.

    configure -name mystore

Output:

    Connected to Admin in read-only mode
    configured: mystore

Exit the admin CLI utility

    exit