Instance Snapshots
Instance Snapshots are point-in-time copies of your virtual machine’s root volume and data volumes. They provide a reliable way to create backups, test upgrades, and clone environments.
Types of Snapshots
-
Volume Snapshot: Captures the data on a specific disk volume (e.g., Root or Data Disk).
- Consistent: Best practice is to stop write operations or the instance before snapshotting to ensure data consistency.
- Backup: Stored redundantly across availability zones.
-
VM Snapshot (Memory Included) (Advanced): Captures the entire running state of the VM, including RAM contents.
- Live: Can be taken while the VM is running.
- Instant Restore: Reverts the VM exactly to the moment the snapshot was taken, preserving open applications.
- Note: Requires KVM-specific support and may briefly pause the VM.
Creating a Snapshot
- Navigate to Storage > Volumes.
- Select the volume you wish to back up (e.g., “ROOT-123”).
- Click Take Snapshot.
- Name: Provide a descriptive name (e.g.,
backup-pre-upgrade). - Description: Optional notes.
Scheduled Backups
You can automate daily, weekly, or monthly snapshots:
- Select the volume.
- Click Recurring Snapshots.
- Define the Time, Time Zone, Days of Week, and Keep Last X (retention policy).
Restoring from Snapshot
To restore data:
- Navigate to Storage > Snapshots.
- Select the snapshot.
- Click Create Volume: Creates a new disk volume from the snapshot.
- Detach the old volume from the instance.
- Attach the new volume.
- Or: Create a Template (Image) from the snapshot to launch new instances.
Usage & Pricing
- Snapshots are billed based on the storage size consumed (incremental backups save space).
- Regular pruning of old snapshots via retention policies is recommended to manage costs.