Snapshots: Create a Point-in-Time Copy of your High-Performance Volumes
4 minToday, we are excited to announce the availability of Volume Snapshots in public preview!
Snapshots are an essential feature to backup your High-Performance Volumes, simplify data management and allow reproducibility.
With Snapshots, you can create an immediate point-in-time copy of your Volumes with a simple CLI command or click, enabling:
- Live backups: create an exact copy of your data at any time to prevent data loss.
- Duplicate Volumes: you can now easily create Snapshots to replicate an existing dataset
- Data movement: to maximize throughput and reduce latency, our high-performance NVMe Volumes are stored locally on our bare metal hypervisors. Snapshots are an easy way to move data between different GPUs and CPU instances.
- Disaster recovery: Volumes can fail as they are local. Snapshots are automatically stored on a highly-available and durable remote store to prevent data loss in case of hardware failure.
Volumes and Snapshots are available today in our Frankfurt, EU and Washington, US regions!
Snapshots 101
Here are the basics, you can:
- Snapshot a Volume: Create a point-in-time Volume copy that is remotely stored to ensure long-term storage
- Create a Volume from a Snapshot: Restore your Snapshots and mount the new Volume to your service in case of accidental data loss or corruption.
When you snapshot a volume, there are three automatic steps:
- Creating: the Volume is being snapshotted locally on the hypervisor. Snapshotting a Volume takes only a couple of seconds.
- Migrating: the Snapshot is uploaded to a durable remote store for long-term storage. This takes between a couple of seconds and several minutes depending on the amount of data to copy.
- Available: the Snapshot can be used to create a new Volume!
How to Get Started
You can create Snapshots with the CLI or via the control panel. Here is an example of the simple steps to take with the CLI:
-
Create a Snapshot
Use the Koyeb CLI to create a Snapshot:
-
View Snapshots
List all snapshots for a specific Volume:
-
Restore a Volume from Snapshot
Restore a snapshot to an existing or new Volume:
Automatic Snapshots
If you want to automate the process of performing snapshots at specific intervals, we recommend using a third-party service to schedule this task for now. Spoiler alert: we have some exciting announcements coming soon!
In the example below, we use GitHub Actions to define a workflow that creates a Snapshot of a specified Volume on a daily basis. Feel free to extend and adapt this workflow to suit your needs.
To deploy this workflow, using the GitHub CLI process as below:
- Create a new GitHub repository:
- Add the Workflow content above to the following path and edit the
VOLUME_NAME
value with the name of the Volume to snapshot
- Create a new Koyeb API access tokens here, and then create a new
KOYEB_TOKEN
secret on the GitHub repository
- Commit, push, and test the workflow
Navigate to your GitHub repository, and trigger the workflow in the Actions tab. If everything is working as expected, you should see a new snapshot created on Koyeb. This workflow will now trigger on a daily basis.
Take a Snapshot Today!
Snapshots are now available and free during the public preview. Check out the Snapshot documentation.
Ready to get started? Sign up and deploy your first stateful Service today!
We're looking forward to your feedback to help us shape the product, stay tuned for more updates, and thank you for building with Koyeb!