ZFS Is Not a Backup
Why Isn't ZFS a Backup?
ZFS protects data stored inside a ZFS storage system, but it cannot protect that data from every event that can affect the system itself. Mirrors and RAIDZ can protect against certain drive failures, checksums can detect corruption, and snapshots can preserve previous dataset states. None of those capabilities alone creates an independent copy of the data.
A true backup should provide another recoverable copy that is sufficiently isolated from the primary storage system so the same failure, mistake or destructive event cannot easily destroy both copies.
Redundancy Is Not the Same as Backup
ZFS redundancy is primarily designed to keep data available when storage hardware fails. Backup is designed to give you another copy from which data can be recovered.
Keep the Storage Running
Mirrors and RAIDZ maintain redundant information inside the storage pool so data can remain accessible after supported device failures.
Recover the Data
A backup creates another recoverable copy of important data, ideally on separate storage and with enough isolation to survive failures affecting the primary system.
What Does ZFS Protect Against?
ZFS combines several technologies that can substantially improve storage reliability. Each addresses a different type of storage problem.
What Can Still Destroy Data on a ZFS System?
Are ZFS Snapshots Backups?
Not by themselves. A ZFS snapshot is a point-in-time representation of a dataset. It is extremely useful for recovering earlier versions of files and rolling back certain unwanted changes, but the snapshot normally remains dependent on the same ZFS pool.
What Happens If the Entire ZFS Server Is Lost?
Using ZFS Send and Receive for Backup
ZFS provides native snapshot replication through zfs send and zfs receive. These commands can transfer ZFS snapshot streams to another ZFS dataset or pool.
Replication becomes much more useful for backup when the destination is genuinely independent of the primary system. For example, the receiving pool may reside in another server, another location or another administrative/security boundary.
Replication Is Not Automatically a Safe Backup
Copying data to another system is valuable, but replication alone does not guarantee protection. If unwanted changes or deletions are automatically propagated to the destination, the secondary system may reproduce the same problem.
Backup design should therefore consider snapshot retention, access controls, version history, isolation and whether a destructive event on the primary system can also reach the secondary copy.
ZFS Features vs Backup
| Technology | Primary Purpose | Independent Copy? | Replaces Backup? |
|---|---|---|---|
| ZFS Mirror | Device redundancy | No | No |
| RAIDZ | Device redundancy | No | No |
| Checksums | Integrity verification | No | No |
| Snapshots | Point-in-time recovery | Normally no | No |
| Remote ZFS Replication | Secondary data copy | Potentially | Can form part of a backup strategy |
| Independent Backup | Recovery after data loss | Yes | This is the backup layer |
The 3-2-1 Backup Principle
A widely used backup guideline is the 3-2-1 approach. The exact implementation varies by organization, but the basic idea is to avoid depending on one storage system or one failure domain.
A Better ZFS Data-Protection Architecture
Questions to Ask When Backing Up ZFS
RPO and RTO Matter More Than the Word "Backup"
A Healthy ZFS Pool Can Still Lose Important Data
A pool can be healthy, all disks can be online, and every checksum can be correct while an important file is still deleted, overwritten or otherwise unavailable because of a logical or administrative event.
Storage integrity, redundancy, snapshots and backups solve different problems. Strong data protection uses them together rather than expecting one technology to replace all the others.
ZFS Backup FAQ
Is ZFS a backup?
No. ZFS provides storage-integrity, redundancy and recovery features, but important data should still have independent backup copies.
Is a ZFS mirror a backup?
No. A mirror provides redundant copies inside a vdev for availability and fault tolerance. It does not create an independent backup.
Is RAIDZ a backup?
No. RAIDZ provides storage redundancy against supported device failures but does not protect against every cause of data loss.
Are ZFS snapshots backups?
Snapshots are valuable recovery points, but snapshots stored only on the production pool are not independent backup copies.
Can ZFS snapshots recover deleted files?
They can when a retained snapshot contains the required earlier version of the file or dataset.
Can ZFS be used to create backups?
Yes. Snapshots combined with ZFS send and receive can be used to replicate recovery points to another ZFS system or pool.
Is ZFS replication a backup?
It can form part of a backup strategy when the replicated data is sufficiently independent, retained appropriately and protected from the same destructive events as the primary data.
Do I need backups if I use RAIDZ2 or RAIDZ3?
Yes. Additional parity improves device-failure tolerance but does not protect against every logical, administrative or site-wide data-loss event.
What is the best backup strategy for ZFS?
Requirements vary, but a strong design commonly combines redundant storage, snapshots, independent backup copies, off-site or isolated protection and tested recovery procedures.
