LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2023, 04:17 PM   #1
nooobeee
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 72

Rep: Reputation: 1
ZFS Replication as a backup


I am redoing my backup architecture and am considering ZFS replication. I presume the snapshots are what provide the versioning capabilities in a setup like that and I suppose additional snapshots can be taken on the target machine to increase the number of versions.

However, this workflow for a backup seems a bit foreign to me. Maybe it just seems too "simple" or "easy" for me to think it'll work. Currently I use Borg as a backup solution and I'm pretty happy with it. Perhaps this is just the windows admin side of me saying that if I don't have to fight with it, then it ain't working.

I'm looking for thoughts on relying on ZFS replication and snapshots as a backup. Or should I stick with something like borg?
 
Old 11-23-2023, 10:27 AM   #2
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
I wouldn't consider replication and snapshots a true backup solution, but I guess it also depends on what you are looking to protect against. For example replication is great if there is a problem with a single server (or site), then you have a full up to date copy of all your data on a different system. As a backup method though it does nothing if you accidentally delete some files as they will get deleted on the replica system as well.

Snapshots do offer some more protection though, and fast recovery of small subsets of the file system. How viable this is for recovery really will depend on a number of factors. I will generally look at snapshots as a take a few through the day, keep maybe a week worth, and it is a simple fix to the accidentally deleted or altered file. However if the problem was a corrupted file system it is possible that snapshots won't help.

For anything important I would always recommend doing a full true backup to another system (or ideally multiple systems so you have a copy on a different media type and a different location). At the end of the day it will really mostly depend on how important the data is to you, and how much can be invested in protecting it.
 
2 members found this post helpful.
Old 11-23-2023, 11:07 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by ComputerErik View Post
I wouldn't consider replication and snapshots a true backup solution, but I guess it also depends on what you are looking to protect against. For example replication is great if there is a problem with a single server (or site), then you have a full up to date copy of all your data on a different system. As a backup method though it does nothing if you accidentally delete some files as they will get deleted on the replica system as well.

Snapshots do offer some more protection though, and fast recovery of small subsets of the file system. How viable this is for recovery really will depend on a number of factors. I will generally look at snapshots as a take a few through the day, keep maybe a week worth, and it is a simple fix to the accidentally deleted or altered file. However if the problem was a corrupted file system it is possible that snapshots won't help.

For anything important I would always recommend doing a full true backup to another system (or ideally multiple systems so you have a copy on a different media type and a different location). At the end of the day it will really mostly depend on how important the data is to you, and how much can be invested in protecting it.
+1 to all of this. Replication only helps so much...what if a file got corrupted and you need a copy from a week ago? All you have is the same corrupted file in two places, but a genuine backup gives you a broader safety net.

I always replicate for servers that need to be up 24/7/365, but ALSO have full and incremental backups on other media. I typically take a full backup weekly, with nightly incrementals.
 
1 members found this post helpful.
Old 11-24-2023, 11:02 AM   #4
nooobeee
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 72

Original Poster
Rep: Reputation: 1
All of that totally resonates with me. I suppose there may be an argument to be made for the ZFS resiliency and snapshots with regards to file corruption at both a block level and at file level respectively. There may also be an argument to be made for the simplicity of leveraging existing filesystem capabilities for the backup solution. Though this is a home lab and I'm tempted to experiment with using ZFS in this way, I don't think I'm brave enough to rely on it over a more traditional backup job.
 
  


Reply

Tags
backup, borg, replication, zfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to setup PostgreSQL Streaming Replication with Replication Slots on Debian 10 LXer Syndicated Linux News 0 11-06-2019 03:50 AM
LXer: How to use snapshots, clones and replication in ZFS on Linux LXer Syndicated Linux News 0 12-11-2015 06:02 AM
LXer: Article ZFS data integrity testing and more random ZFS thoughts. LXer Syndicated Linux News 0 05-15-2010 12:51 PM
Solaris Express ZFS vs Solaris 10 ZFS? kebabbert Solaris / OpenSolaris 8 06-29-2007 07:05 AM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration