

# Graph snapshots
<a name="graph-snapshots"></a>

 Neptune Analytics provides you the ability to create a named snapshot of your analytics graph, and also the ability to restore from existing graph snapshots. A graph snapshot is a compacted deep copy of your entire graph. Snapshots are created asynchronously, and do not affect the performance of your running graph. You can restore a snapshot into a new graph at any time. 

**Topics**
+ [

# Creating a graph snapshot
](graph-snapshots-creating.md)
+ [

# Listing existing graph snapshots
](graph-snapshots-listing.md)
+ [

# Restoring from a graph snapshot
](graph-snapshots-restoring.md)
+ [

# Deleting a graph snapshot
](graph-snapshots-deleting.md)

# Creating a graph snapshot
<a name="graph-snapshots-creating"></a>

 Creating a graph snapshot is a crucial step in managing and maintaining your data within the Neptune graph database. This process allows you to capture a point-in-time snapshot of your graph, which can be useful for various purposes such as backup, restoration, or analysis. The provided instructions outline the steps to create a graph snapshot using either the AWS Command Line Interface (CLI) or the AWS SDK, as well as the Neptune console. By following these steps, you can easily identify the graph you want to snapshot, provide a unique name for the snapshot, and initiate the creation process. 

------
#### [ CLI/SDK ]

**Find the id of your graph**

```
aws neptune-graph list-graphs
```

 This command will give you a list of your graphs. Find the graph id of the graph you want to take a snapshot of and write it down. 

 **Create a graph snapshot** 

```
aws neptune-graph create-graph-snapshot \
--graph-identifier <GRAPH_ID> \
--snapshot-name <SNAPSHOT_NAME>
```

 Parameters: 

1.  `graph-identifier` - The graph id you want to take the snapshot from. 

1.  `snapshot-name` - The name you want to use for your graph snapshot. 

------
#### [ Neptune Console ]

1.  Select the graph you want to take a snapshot of in **Analytics**, **Graphs**. 

1.  Choose **Actions**, and choose **Create snapshot**.   
![\[Image showing the selection process of creating a snapshot.\]](http://docs.aws.amazon.com/neptune-analytics/latest/userguide/images/snapshots/create-step-2.png)

1.  Give the snapshot a name and choose **Create Analytics Snapshot**.   
![\[Analytics snapshot creation interface with name input field and tag section.\]](http://docs.aws.amazon.com/neptune-analytics/latest/userguide/images/snapshots/create-step-3.png)

------

# Listing existing graph snapshots
<a name="graph-snapshots-listing"></a>

 The following information outlines the various methods and commands for managing graph snapshots in the Amazon Neptune database service. It covers the steps to list all existing graph snapshots, as well as how to retrieve details of a specific snapshot. The information also explains the different status states that a graph snapshot can have, such as "CREATING," "AVAILABLE," "FAILED," and "DELETING." 

------
#### [ CLI/SDK ]

**List all graph snapshots**

```
aws neptune-graph list-graph-snapshots
```

**Look up a single graph snapshot**

```
aws neptune-graph get-graph-snapshot \
--snapshot-id <SNAPSHOT_ID>
```

Status:
+  CREATING: The snapshot is currently being created. 
+  AVAILABLE: The snapshot is available and can be restored from. 
+  FAILED: The snapshot failed to create. 
+  DELETING: The snapshot is currently being deleted. 

------
#### [ Neptune Console ]

 You can view your snapshots by expanding **Analytics** and choosing **Snapshots**. 

![\[Expanded Analytics menu showing Graphs, Snapshots, and Import tasks options.\]](http://docs.aws.amazon.com/neptune-analytics/latest/userguide/images/snapshots/listing-via-console.png)


------

# Restoring from a graph snapshot
<a name="graph-snapshots-restoring"></a>

 When you create a snapshot of a graph, Neptune Analytics creates a storage volume snapshot of the graph, backing up all of its data. You can later create a new Neptune Analytics graph by restoring from this snapshot. When you restore the graph, you provide the name of the graph snapshot to restore from, and then provide a name for the new graph that is created by the restore. 

------
#### [ CLI/SDK ]

**Restore an analytics graph from a snapshot**

```
aws neptune-graph restore-graph-from-snapshot \
--graph-name <NEW_GRAPH_NAME> \
--snapshot-id <SNAPSHOT_ID>
```

Parameters:

1.  `graph-name` - The name of the new Neptune Analytics graph that will be created from the snapshot. 

1.  `snapshot-id` - The snapshot identifier you want to restore from. 

Optional parameters:

1.  `min-provisioned-memory` - The minimum provisioned memory to use for the new graph. Default: 64. 

1.  `max-provisioned-memory` - The maximum provisioned memory to use for the new graph. Default: 1024, or the approved upper limit for your account. Neptune Analytics will analyze the data to find the best memory configuration between min-provisioned-memory and max-provisioned-memory to create the graph. 

1.  `public-access, no-public-access` - Whether connectivity over public networks (internet) is enabled or not. Default: `no-public-access`. 

1.  `replica-count` - The number of replicas to provision on the new graph after import. Default: 0, Min: 0, Max:2. 

------
#### [ Neptune Console ]

1.  Find the snapshot you want to restore by expanding **Analytics** and choosing **Snapshots**. 

1.  Select the snapshot and choose **Restore snapshot**. 

1.  Give the graph a unique name, and choose provisioned m-NCU.   
![\[Image showing the form used to give the graph a unique name and choose m-NCU for the graph.\]](http://docs.aws.amazon.com/neptune-analytics/latest/userguide/images/snapshots/restore-step-3.png)

1.  Update availibility, network, and advanced settings if necessary, and choose the **Restore snapshot** button.   
![\[Image showing the form used to update availibility, network, and advanced settings.\]](http://docs.aws.amazon.com/neptune-analytics/latest/userguide/images/snapshots/restore-step-4.png)

1.  You can review the status of your restored graph by expanding **Analytics** and choosing **Graphs**. 

------

# Deleting a graph snapshot
<a name="graph-snapshots-deleting"></a>

 Deleting a graph snapshot is an important task in managing and maintaining your Neptune graph database. The AWS Neptune Console and Command Line Interface (CLI) or Software Development Kit (SDK) provide the necessary tools to accomplish this. 

------
#### [ CLI/SDK ]

**Delete a snapshot**

```
aws neptune-graph delete-graph-snapshot \
--snapshot-id <SNAPSHOT_ID>
```

------
#### [ Neptune Console ]

1.  Expand **Analytics** and choose **Snapshots**. 

1.  Select the snapshot you want to delete, and choose the **Delete** button. 

1.  Type "confirm" in the text box to confirm you want to delete the snapshot, then choose the **Delete** button. 

------