Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.