Snapshots
ZFS snapshots provide instant, space-efficient point-in-time copies of filesystems and volumes. Use them for backup, recovery, and data protection.
Access
Section titled “Access”Navigate to Snapshots in the Web UI sidebar.
View Snapshots
Section titled “View Snapshots”The Snapshots panel lists all ZFS filesystems and ZVOLs with:
- Volume name and device path
- Size
- Last snapshot timestamp
- Snapshot count
Use view filters to show: all volumes, active only (have snapshots), or inactive only (no snapshots).
Create a Manual Snapshot
Section titled “Create a Manual Snapshot”- Select a volume by checking its checkbox
- Click New
- Accept the default name or enter a custom one
- Click OK
Schedule Automatic Snapshots
Section titled “Schedule Automatic Snapshots”- Select a volume
- Click Schedule
- Configure the snapshot policy:
| Field | Description |
|---|---|
| Interval | Frequency: frequent (minutes), hourly, daily, or monthly |
| Period | Number of intervals between snapshots |
| Keep | Number of snapshots to retain (older ones are automatically deleted) |
| Offset | Offset within the interval period |
- Click Save
Example Policies
Section titled “Example Policies”| Interval | Period | Keep | Result |
|---|---|---|---|
| frequent | 15 | 4 | Every 15 minutes, keep last 4 (1 hour of coverage) |
| hourly | 1 | 24 | Every hour, keep last 24 (1 day of coverage) |
| daily | 1 | 7 | Every day, keep last 7 (1 week of coverage) |
| monthly | 1 | 12 | Every month, keep last 12 (1 year of coverage) |
Delete Snapshots
Section titled “Delete Snapshots”- Select a volume or specific snapshot
- Click Delete
Rollback a Snapshot
Section titled “Rollback a Snapshot”Rollback reverts a filesystem to the state captured in a snapshot. All changes made after the snapshot are lost.
Copy a Snapshot
Section titled “Copy a Snapshot”Copy a snapshot to another volume or device for offline backup or migration.
# Create a snapshotmayacli create snapshot snapshotof=tank/data
# Create a snapshot with a specific size (for LVM snapshots)mayacli create snapshot snapshotof=testvol size=20G
# Show all snapshotsmayacli show snapshot
# Show snapshots for a specific volumemayacli show snapshot tank/data
# Delete a snapshotmayacli delete snapshot tank/data@snap-2024-01-15
# Delete all snapshots for a volumemayacli delete snapshot tank/data
# Set a snapshot schedule (daily, keep 7)mayacli set snapshot tank/data interval=daily period=1 keep=7
# Set a frequent snapshot schedule (every 15 minutes, keep 4)mayacli set snapshot tank/data interval=frequent period=15 keep=4
# Set a monthly schedulemayacli set snapshot tank/data interval=monthly period=1 keep=12
# Disable scheduled snapshotsmayacli set snapshot tank/data interval=none
# Rollback to a snapshotmayacli snapshot rollback tank/data@snap-2024-01-15
# Copy a snapshot to another volumemayacli snapshot copy tank/data@snap-2024-01-15 backup/data
# Start snapshot replicationmayacli snapshot start tank/dataSee CLI Guide for the full command reference.