Skip to content

Snapshots and Protection

gitsync edited this page Nov 17, 2026 · 2 revisions

The Protect page is the home of data protection: snapshots, automated snapshot & replication schedules, and filesystem-level rsync to external storage. It has two tabs: ZFS Replication & Snapshots and Filesystem rsync.

Protect page

Snapshots

Snapshots are read-only point-in-time copies of a dataset. They are listed per dataset in a collapsible tree spanning all pools, with a camera button for instant manual snapshots.

Operation Description
Create Snapshot the current state of a dataset
Restore Roll back the dataset to this snapshot (destroys newer data — confirmed explicitly)
Clone Create a new writable dataset from the snapshot
Delete Remove the snapshot (space is freed once nothing references it)

Snapshot & replication schedules

Add snapshot policy

Click + Add Policy to create an automated policy. Each policy combines:

  • Dataset — what to snapshot
  • Frequency — hourly, daily (at a time), weekly (day + time), or monthly
  • Retention (Keep) — how many snapshots to keep; older ones are pruned automatically after each run
  • Replication target (optional) — replicate each snapshot after it is taken:
    • Local — dataset-to-dataset copy on the same server
    • Remote (SSH) — push snapshots to any ZFS host over SSH (resumable if interrupted)
    • InterLink — push to another ZNAS server with zero SSH key management; see InterLink

The schedule table shows label, frequency, retention, last/next run, and result at a glance. Run now is available from each policy's ⋮ menu.

Remote (SSH) target setup

On the remote server, create a replication user and delegate ZFS receive rights:

sudo zfs allow zfsrepl receive,create,mount tank/backup

Then fill host, port, user, SSH key, and destination dataset in the policy. For ZNAS-to-ZNAS replication, prefer InterLink — it handles credentials automatically over HTTPS.

Filesystem rsync (remote storage)

Filesystem rsync tab

The Filesystem rsync tab copies files (rather than ZFS streams) — useful for non-ZFS destinations:

  • Remote storage — connect an SMB, NFS, FTP or SSH (SFTP) location; it is mounted on demand under /mnt/zfsnas-ext and can be browsed like a local folder
  • Rsync jobs — one-shot or scheduled file sync between a dataset/folder and a remote storage, in either direction, with include/exclude patterns and live progress
  • Works with any filesystem on the destination (ext4, exFAT, NTFS, a NAS mount, …)

Use ZFS replication when the destination is ZFS (faster, keeps snapshots and properties); use rsync when it isn't.

Retention behavior

Retention prunes only snapshots created by the policy itself (matched by its label) and always keeps the newest common snapshot needed as a replication anchor — pruning never breaks incremental replication.

Related pages

Clone this wiki locally