# snapshot-storage

Create a snapshot of a storage instance and save it as a flexi image. This command allows you to capture the state of a storage instance at a specific point in time and use it as a flexi image for future deployments.

## Usage

```
cldkctl flexi-image snapshot-storage [flags]
```

## Aliases

```
snapshot-storage, snapshot-storage
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl flexi-image snapshot-storage 
```

2. Select the **billing type**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F0t6ZSBRtCNOajXGmdIXd%2Fimage.png?alt=media&#x26;token=f7f50893-37b5-4deb-8499-a05ed9183a41" alt=""><figcaption></figcaption></figure>

3. Select the **storage** for which you want to create the snapshot.
4. Enter the **snapshot name**.
5. Confirm the snapshot creation by selecting **Confirm**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FA08PNeo3m83XFYE8ghSR%2Fimage.png?alt=media&#x26;token=a5a862b9-4d41-4a06-ae17-da813b84caf5" alt=""><figcaption></figcaption></figure>

6. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fdtz3TvOrOBns7ZUG64ig%2Fimage.png?alt=media&#x26;token=11479eae-c08d-46c2-b059-e6d475b426c9" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details
{% endhint %}

<table><thead><tr><th width="187.33331298828125">Flag</th><th>Description</th></tr></thead><tbody><tr><td>-h, --help</td><td>Help for the snapshot-storage command.</td></tr></tbody></table>
