Using Snapshots
Learn how to use Snapshots to save the state of your instance’s disk and create new instances from it.
Snapshots allow you to save the state of a stopped instance’s disk, which you can then use as a template to create new instances. This is useful for saving a configured environment, so you can quickly launch new instances with the same setup.
Conveniently, snapshots also compress your data and place it on cheaper HDDs vs standard SSD storage. This cuts cost by about 75% for long-term storage.
Creating a Snapshot
You can create a snapshot from any stopped instance using either the Thunder Compute Console or the CLI.
Using the Console
- Navigate to the Thunder Compute Console.
- Find the instance you want to snapshot. The instance must be in a
STOPPED
state. - Check the box next to the instance, and click the “Snapshot” button in the action bar.
Using the CLI
To create a snapshot with the CLI, use the tnr snapshot
command:
<instance_ID>
: The ID of the instance to snapshot. The instance must be stopped. You can find the instance ID by runningtnr status
.<snapshot_name>
: A unique name for your snapshot.- Must contain only lowercase letters (a-z), numbers (0-9), and hyphens (-).
- Must be between 1 and 62 characters long.
Creating an Instance from a Snapshot
Once you’ve created a snapshot, you can use it to launch new instances.
Using the Console
- Navigate to the “Snapshots” tab in the Thunder Compute Console.
- Find the snapshot you want to use.
- Click the “Create Instance” button.
- Configure your new instance as desired. The new instance’s disk size must be equal to or greater than the snapshot’s disk size.
Using the CLI
You can use a snapshot as a template when creating a new instance with the tnr create
command. The snapshot defines the initial disk content and size.
While the snapshot defines the disk, you can modify other configuration options like the vCPU count or GPU type.
The new instance’s disk size must be equal to or greater than the original instance’s disk size. Decreasing the disk size is not supported.
For example, to create a new instance from a snapshot with a different GPU:
Managing Snapshots
You can list and delete your snapshots using the CLI.
List Snapshots
To see all your available snapshots and their details, including their compressed size:
Delete a Snapshot
To delete a snapshot by name:
This action permanently deletes the snapshot. It does not affect any instances that were created from this snapshot.