Introduction
Application snapshots help you protect your edge applications by capturing their complete state at specific points in time. You'll typically need to manage snapshots when updating applications, recovering from errors, or cleaning up storage space. This article explains how to create snapshots during updates, restore your application from a snapshot when issues occur, and delete snapshots when they're no longer needed.
Prerequisites
Before managing application snapshots:
- You have read the Application Snapshot Overview.
- You have an edge node onboarded to ZEDEDA Cloud.
- Your edge node is running EVE-OS version 10.8.0 or greater.
- You have an edge application instance deployed on your edge node.
- You have SysManager or SysAdmin role in your ZEDEDA Cloud enterprise.
- Your application volumes are using ext4 format (container and CSI volumes are not supported).
- You have at least 20% free storage space on your edge node's persist partition for creating snapshots.
- You’re familiar with edge applications and edge application instances.
Create a Snapshot
You can create snapshots during the Purge & Update process. Or see Create a Snapshot instead if you’re trying to take a snapshot when air-gapped or offline for long periods of time.
- Click Edge App Instances in the left panel.
- Select your edge application instance from the list.
- Click the ellipsis (...) at the top-right corner of the page.
- Select Purge & Update. A confirmation dialog will appear.
- Check the Create a snapshot on purge & update checkbox.
- Click Purge & Update to confirm.
- Monitor the snapshot creation process. This process will take a few minutes because the application instance needs to restart. Your application will stop briefly while ZEDEDA Cloud captures the configuration and volume data, applies the update, then restarts the application
Note: If you make changes to an application image's configuration in the Application Marketplace, an "Update Available" prompt will appear in the associated application instance pages. This prompt gives you the option to initiate a Purge and Update process. You can also create a snapshot when you trigger Purge and Update through this prompt.
View and Verify Snapshots
You can view your application instance's snapshots in the Storage page.
- Click Edge App Instances in the left panel.
- Select your edge application instance from the list.
- Click the Storage tab.
- Scroll down to the App Instance Volume Snapshots section to see the list of available snapshots.
The snapshot list displays the snapshot identifier, creation timestamp, configuration version, and current status for each snapshot.
If you see errors, check that your edge node has sufficient storage space (at least 20% free) and review application logs for detailed error messages.
Rollback to a Snapshot
Rolling back to a snapshot reverts your application to a previously saved state, including both configuration and volume data. Use this when an update causes issues or you need to recover from configuration errors.
Important:
- Before rolling back, back up any data created since the snapshot was taken. Rollback replaces current data with the snapshot's data, and you'll lose any changes made after the snapshot.
- Each snapshot can only be used for a rollback operation one time. After you roll back to a snapshot, you cannot use that same snapshot again for another rollback.
- Click Edge App Instances in the left panel.
- Select your edge application instance.
- Click the Storage tab.
- Scroll down to the App Instance Volume Snapshots section.
- Identify the snapshot you want to roll back to. Review the creation timestamp and configuration version to ensure you select the correct snapshot.
- Click the back arrow icon in the Action column. A confirmation dialog will appear.
- Review the warning message and click Rollback to confirm.
- Monitor the rollback status in the snapshot's Status column. ZEDEDA Cloud stops your application, restores volume data from the snapshot, reapplies the previous configuration, and restarts the application. Typical rollback time depends on the size of the application volume.
Verify the rollback
After the rollback completes:
- Check the snapshot's Status column. After a successful rollback, it will read "Activated" and the rollback button will become inactive.
- Verify your application status shows "Running".
- Confirm the application version matches the snapshot's configuration version.
- Test critical functionality to ensure the application is working as expected.
Troubleshooting rollback issues
Rollback fails with "resource not available": Hardware resources required by the snapshot (such as network interfaces or USB devices) are no longer available on the edge node. Check if resources have been removed or reassigned, free up required resources, or contact support if resources are permanently unavailable.
Application won't start after rollback: Review application logs for specific errors, verify the edge node has sufficient resources, check that network configurations are still valid, and ensure no conflicting applications are using the same resources.
Rollback takes longer than expected: Large applications (volumes over 200GB) might take several minutes. Monitor storage performance on your edge node and check edge node logs for storage-related issues.
Delete a Snapshot
Deleting a snapshot removes the saved state from your edge node and frees up storage space. Delete snapshots when you're confident the current application instance is stable and no longer need rollback capability.
Warning: Deleting a snapshot is permanent. Once deleted, you cannot roll back your application instance to that saved state. Ensure your current application instance is working correctly before deleting snapshots.
- Click Edge App Instances in the left panel.
- Select your edge application instance.
- Click the Storage tab.
- Scroll down to the App Instance Volume Snapshots section.
- Identify the snapshot you want to delete. Review the creation timestamp and configuration version to confirm this is the correct snapshot.
- Click the trash bin icon in the Action column.
- Confirm the deletion when prompted.
- Optional: If you want to immediately delete all snapshot-related files from your edge node's drives and free up storage space right away, restart the application instance. Otherwise, files will be deleted automatically during the next application deactivation.
Understand deletion behavior
ZEDEDA Cloud removes the snapshot from its records immediately, and your snapshot disappears from the management interface. However, the actual deletion of snapshot files from your edge node's drives happens asynchronously during the next application deactivation (update, restart, or purge operation).
Storage space becomes available when your application next stops or restarts. If you need to recover storage immediately, restart the application instance to force the cleanup process.
Verify storage recovery
To verify storage has been freed:
- Click Edge Nodes in the left panel.
- Select your edge node.
- Click the Storage tab.
- Check the available storage on the persist partition.
- Confirm storage has increased after the application's next deactivation.
Expected storage recovery varies based on volume type:
- Non-purgeable volumes: Typically 10-50% of volume size, depending on changes since snapshot
- Purgeable volumes: Up to 100% of the volume size
Next Steps
After managing your application snapshots: