Skip to content

Snapshots

ZFS snapshots provide instant, space-efficient point-in-time copies of filesystems and volumes. Use them for backup, recovery, and data protection.

Navigate to Snapshots in the Web UI sidebar.

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).

  1. Select a volume by checking its checkbox
  2. Click New
  3. Accept the default name or enter a custom one
  4. Click OK
  1. Select a volume
  2. Click Schedule
  3. Configure the snapshot policy:
FieldDescription
IntervalFrequency: frequent (minutes), hourly, daily, or monthly
PeriodNumber of intervals between snapshots
KeepNumber of snapshots to retain (older ones are automatically deleted)
OffsetOffset within the interval period
  1. Click Save
IntervalPeriodKeepResult
frequent154Every 15 minutes, keep last 4 (1 hour of coverage)
hourly124Every hour, keep last 24 (1 day of coverage)
daily17Every day, keep last 7 (1 week of coverage)
monthly112Every month, keep last 12 (1 year of coverage)
  1. Select a volume or specific snapshot
  2. Click Delete

Rollback reverts a filesystem to the state captured in a snapshot. All changes made after the snapshot are lost.

Copy a snapshot to another volume or device for offline backup or migration.

Terminal window
# Create a snapshot
mayacli create snapshot snapshotof=tank/data
# Create a snapshot with a specific size (for LVM snapshots)
mayacli create snapshot snapshotof=testvol size=20G
# Show all snapshots
mayacli show snapshot
# Show snapshots for a specific volume
mayacli show snapshot tank/data
# Delete a snapshot
mayacli delete snapshot tank/data@snap-2024-01-15
# Delete all snapshots for a volume
mayacli 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 schedule
mayacli set snapshot tank/data interval=monthly period=1 keep=12
# Disable scheduled snapshots
mayacli set snapshot tank/data interval=none
# Rollback to a snapshot
mayacli snapshot rollback tank/data@snap-2024-01-15
# Copy a snapshot to another volume
mayacli snapshot copy tank/data@snap-2024-01-15 backup/data
# Start snapshot replication
mayacli snapshot start tank/data

See CLI Guide for the full command reference.