TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Let’s Talk OpenZFS Snapshots

119 pointsby rodrigo975almost 4 years ago

9 comments

barrkelalmost 4 years ago
I make snapshots every hour for 24 hours, every day for 7 days, every week for 4 weeks and every month for three months. This keeps the number of snapshots reasonable while keeping most stuff around should you accidentally delete or overwrite it. I can see a good argument for more fine grained snapshots (e.g. every few minutes) but I think I&#x27;d limit that to directories (and thus FSes) known to have frequent updates.<p>I sometimes blow away all snapshots if I have a big clear out or rewrite of data, or else that stuff sticks around for months.
评论 #27995059 未加载
评论 #27997391 未加载
评论 #27996009 未加载
mvanbaakalmost 4 years ago
&#x27;In this article, we’ll learn how ZFS boot environments (BEs) are used to boot the operating system itself into a previous point in time.&#x27;<p>The whole article does not touch the subject of boot environments ...<p>Maybe the author can update the page and state that the article is about managing snapshots instead of boot environments?
评论 #27997100 未加载
评论 #27999322 未加载
评论 #27995529 未加载
infogulchalmost 4 years ago
Can you somehow associate snapshots from separate machines? Lets say I have two servers that provide services for an app, one runs a postgresql db and the other is just a front for a directory that stores attachments (it&#x27;s an example ok). Both servers are running ZFS and each service is running on its own volume which has regular snapshots taken. If I&#x27;m not too worried about the snapshots being in <i>perfect</i> sync (its ok if I have an extra attachment or have to pull an attachment from the next snapshot; I&#x27;m not asking for a solution to the distributed consensus problem here), is there some particular way I should store or manage the snapshots? Or do I need to write some custom scripts to associate the snapshots and restore them together in case of a recovery situation?
评论 #27997267 未加载
anotherhuealmost 4 years ago
If you&#x27;re using a recent Ubuntu, docker&#x2F;zfs can lead to a large amount of snapshots. &#x27;docker system prune&#x27; may help but has had zfs issues for me.
评论 #27996268 未加载
评论 #27994956 未加载
joshspankitalmost 4 years ago
I tuned out of ZFS when it was being designed, ducked my head in a few years later to read about 8GB+ RAM requirements, and have not tuned back in properly (don’t kick me off HN lol)<p>My question is on snapshots vs file-specific backups: If a folder is set up for non-destructive writes, does it then <i>need</i> snapshots? Is there a benefit to using both snapshots and NDR in the field?
评论 #28001901 未加载
kissgyorgyalmost 4 years ago
ZFS snapshots saved my ass multiple times after a bad Ubuntu upgrade. It&#x27;s pretty easy to roll back.
评论 #27998567 未加载
ewwhitealmost 4 years ago
I orchestrate ZFS snapshots using Monit and Syncoid.<p>See: <a href="https:&#x2F;&#x2F;serverfault.com&#x2F;a&#x2F;842740&#x2F;13325" rel="nofollow">https:&#x2F;&#x2F;serverfault.com&#x2F;a&#x2F;842740&#x2F;13325</a>
paweldudaalmost 4 years ago
Does it make sense to snapshot the entire root dir or just the home directory? Asking about desktop PC.
评论 #27996594 未加载
评论 #27996515 未加载
评论 #27999349 未加载
eptcykaalmost 4 years ago
Is there any good tooling on managing automatic snapshotting and sending backups?
评论 #27996760 未加载
评论 #27998586 未加载
评论 #27996940 未加载
评论 #27996410 未加载
评论 #28005058 未加载