Repository navigation
Settings
Open Settings, then ZFS Master NG under User Utilities. Each setting has short help: turn help on with the ? at the top right of the page. This page explains the settings whose help links here.
Hides each dataset whose name matches this regular expression, with its child datasets and its snapshots. Folders that Directory Listing shows are hidden when they match too. Empty hides nothing.
-
/dockerhides each dataset with/dockerin its name, such ascache/system/docker. - It is one pattern. To hide more, join them with
|, such as/docker|/vms. - Case does not matter. A
.matches any character, so write\.for a dot. - A pattern with
%is read as a Lua pattern, the format that older versions used. In a Lua pattern a dot is%.,|is a plain character, and case matters. - A pattern that is not valid is ignored. Settings says so in red beside the field, and the Main tab says so too.
The date in new snapshot names, written with PHP date letters: Y year, m month, d day, H hour, i minute, s second. Empty uses Y-m-d-His, which gives names such as tank/data@2026-11-03-181920.
It names the snapshots that you take on the Main tab, the snapshots that Replicate takes, and the snapshots of each scheduled run.
Snapshots Prefix comes before the date. Together they make the part after @. ZFS takes a name only when:
- it has only letters, digits, spaces and
_ . : - - with its dataset and
@, it is 255 characters or fewer
What Settings checks:
- When you type a pattern or a prefix, Settings checks the names it gives now and in half a year, after a pool with a one-letter name. When ZFS would refuse one, Settings shows why in red beside Snapshots Pattern, and Apply is refused.
- If the check itself fails, the red text says so, and Apply is not refused.
- A pattern that ZFS refuses and that was saved all the same shows in red too. Then a new or changed schedule is not saved.
- A name that is too long only after a longer dataset name does not show here. Diagnostics finds it.
- ZFS does not take a snapshot whose name it refuses. The action or the schedule that would take it says why.
With Snapshot Time set to Local time, the clock shows the hour before the change again where summer time ends, and cron starts a schedule due in that hour at each. The second run gives the same snapshot names as the first when Snapshots Pattern has no seconds, or when the two runs start in the same second. It then leaves out each dataset that already has that snapshot.
To keep both, add I to Snapshots Pattern: it is 1 in summer time and 0 otherwise, so the two runs give different names. UTC has no summer time, so this does not happen with UTC.
Both servers must run ZFS Master NG. On this page, the receiver is the server that gets the copies, and the sender is the server that sends them.
On the receiver:
- On the Main tab, press Create Dataset on a pool and make the dataset for the copies, such as
backup/replicas. A pool's top dataset is not accepted. - Open Settings, ZFS Master NG. Under Replication, type the dataset's name in Accept Replicas Into, then press Apply.
On the sender:
- Open Settings, ZFS Master NG. Under Replicate To Other Servers, if This Server's Key shows Make This Server's Key, press it.
- Under Add A Server, type a name for the receiver, its IP address and its SSH port, then press Read Host Key.
- Compare the host key that it shows with This Server's Host Key on the receiver (Settings, ZFS Master NG, under Replication). If they match, tick the box and press Add. If they are different, something else answers at that address: do not add it.
- Under Servers, the sender now shows one line under the receiver's name. Copy that line.
On the receiver:
- Open Users, then root. Paste the line, unchanged, into SSH authorized keys and press Apply. Unraid 6.9 has no such field: add the line to
/boot/config/ssh/root/authorized_keysinstead.
On the sender:
- Under Servers, press Test beside the receiver. Test makes the sender's own dataset inside the receiver's Accept Replicas Into dataset, and shows its name.
Then choose what to copy: see Copies on another server.
- The line lets the sender's key only list, check and receive copies inside its own dataset on the receiver. It can't destroy, roll back or replace anything, or run any other command.
- Paste the line unchanged. The sender's key on a line without these limits, such as the key alone, can run any command as root on the receiver.
- On the receiver, Sender Keys shows each such line, and shows in red a line that does not have all the limits. See Sender Keys.
- Copies never mount and never show as block devices. They have setuid, devices and exec off.
- A quota on the Accept Replicas Into dataset limits the space that all copies use together.
- When Accept Replicas Into is empty, the receiver accepts no copies.
- When both servers have zstd, as current Unraid does, copies of unencrypted datasets travel compressed with it, and land the same as without it. When either server runs an earlier version of ZFS Master NG, copies travel as they are.
Which snapshots each copy received on this server keeps. It uses the same rules as Snapshots To Keep under Schedules (see Snapshots to keep):
- A number keeps the newest that many.
-
7d,4wand12mkeep the newest snapshot of each of the last 7 days, 4 weeks and 12 months that have one, such as24 7d 4w 12m. - Days, weeks and months count by when the sender took each snapshot, in this server's time zone.
- Empty keeps all.
After each copy from a sender lands, the snapshots it does not keep are removed, up to 50 each time. The rest go after the next copy.
- Every snapshot of a copy counts, whichever run sent it.
- A snapshot that is held or cloned here stays.
- The newest snapshot always stays: the sender's next run sends the changes since it.
- A copy that stops part-way loses nothing.
- When a snapshot can't be removed,
/var/log/zfs.master.logand a notification say which one and why.
The lines in root's SSH authorized keys (Users, root, SSH authorized keys) that run replica-serve.php, which receives copies on this server. A line limits its key to replication only when it has all three of these:
-
restrict, and none ofpty,port-forwarding,agent-forwarding,x11-forwardingoruser-rc. Each of these gives back something thatrestricttakes away. -
from=with the sender's exact IP addresses, with commas between them. No ranges, wildcards,!or host names. -
command=with exactly/usr/local/emhttp/plugins/zfs.master/scripts/replica-serve.php, a space and the sender's name.
A line in red does not have all three. Replace it with the line that the sender shows under Servers, unchanged.
The servers this one may send copies to. Under each one is the line to add on that server (see Copies between servers), or what stops this server showing it.
This server makes the line when you add a server. It has four parts:
-
restrict: SSH gives the key no terminal and no forwarding. -
from="...": the address this server sends from to reach that server. The key works only from this address. -
command="/usr/local/emhttp/plugins/zfs.master/scripts/replica-serve.php <name>": the only program the key can run, with this server's name (Settings, Identification). - this server's public key, as This Server's Key shows it.
After you add a server:
- Test makes this server's dataset on that server if it is not there, and shows its name.
- Each server's host key is kept from when you added it. If the host key changes, this server refuses that server until you remove it and add it again.
- If this server's address changes, replace the line on that server with the new one.
- If a router between them changes the address (source NAT), that server refuses the key. Then, on that server, set
from=to the exact address it sees.
To send a copy: on the Main tab, open a dataset's Actions menu, choose Replicate or Schedules, and pick the server under Server.