zfsnapr VS dotfiles

Compare zfsnapr vs dotfiles and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
zfsnapr dotfiles
7 9
21 31
- -
5.6 8.6
8 months ago 5 days ago
Ruby Python
BSD 2-clause "Simplified" License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

zfsnapr

Posts with mentions or reviews of zfsnapr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-15.
  • Kopia: Open-Source, Fast and Secure Open-Source Backup Software
    20 projects | news.ycombinator.com | 15 Sep 2023
    FreeBSD had a pretty decent option in the base system two decades ago - FFS snapshots and a stock backup tool that would use them automatically with minimal effort, dump(8). Just chuck `-L` at it and your backups are consistent.

    Now of course it's all about ZFS, so there's at least snapshots paired with replication - but the story for anything else is still pretty bad, with you having to put all the fiddly pieces together. I'm sure some people taught their backup tool about their special named backup snapshots sprinkled about in `.zfs/snapshot` directories, but given the fiddly nature of it I'm also sure most people just ended up YOLOing raw directories, temporal-smearing be damned.

    I know I did!

    I finally got around to fixing that last year with zfsnapr[1]. `zfsnapr mount /mnt/backup` and there's a snapshot of the system - all datasets, mounted recursively - ready for whatever backup tool of the year is.

    I'm kind of disappointed in mentioning it over on the Practical ZFS forum that the response was not "why didn't you just use ", but "I can see why that might be useful".

    Well, yes, it makes backups actually work.

    > Also, it's unclear to me what happens if you attempt a snapshot in the middle of something like a database transaction or even a basic file write. Seems likely that the snapshot would still be corrupted

    A snapshot is a point-in-time image of the filesystem at a given point. Any ACID database worth the name will roll back the in-flight transaction just like they would if you issued it a `kill -9`.

    For other file writes, that's really down to whether or not such interruptions were considered by the writer. You may well have half-written files in your snapshot, with the file contents as they were in between two write() calls. Ideally this will only be in the form of temporary files, prior to their rename() over the data they're replacing.

    For everything else - well, you have more than one snapshot backed up, right?

    1: https://github.com/Freaky/zfsnapr

  • ZFS for Dummies
    6 projects | news.ycombinator.com | 5 Sep 2023
    I make remote snapshot backups with Borg using this: https://github.com/Freaky/zfsnapr

    zfsnapr mounts recursive snapshots on a target directory so you can just point whatever backup tool you like at a normal directory tree.

    I still use send/recv for local backups - I think it's good to have a mix of strategies.

  • BorgBackup, Deduplicating archiver with compression and encryption
    18 projects | news.ycombinator.com | 27 Dec 2022
    This is why I made https://github.com/Freaky/zfsnapr

    Instead of working out how to teach my backup tools about snapshots, I just mount them in a subtree and use that as a chroot env.

  • Ask HN: Can I see your scripts?
    73 projects | news.ycombinator.com | 15 Aug 2022
    borg-backup.sh, which runs my remote borg backups off a cronjob: https://github.com/Freaky/borg-backup.sh

    zfsnapr, a ZFS recursive snapshot mounter - I run borg-backup.sh using this to make consistent backups: https://github.com/Freaky/zfsnapr

    mkjail, an automatic minimal FreeBSD chroot environment builder: https://github.com/Freaky/mkjail

    run-one, a clone of the Ubuntu scripts of the same name, which provides a slightly friendlier alternative to running commands with flock/lockf: https://github.com/Freaky/run-one

  • Correct Backups Require Filesystem Snapshots
    3 projects | news.ycombinator.com | 16 May 2022
    I wrote https://github.com/Freaky/zfsnapr a few months ago so I could finally have point-in-time consistent Borg backups with ZFS snapshots, without having the mess of teaching Borg where every .zfs directory was.

    It recursively snapshots mounted pools, and recursively mounts snapshots of the mounted datasets into a target ready to point your backup tools at. I do so via a chroot so I didn't need to make any changes to my Borg setup - just to how I run it.

  • Snapshot stat changes on access
    2 projects | /r/zfs | 26 Apr 2022
    This is the approach I take with zfssnapr - make a recursive snapshot of pools and then use mountpoint/canmount to recursively mount datasets on a location. Then I can just point borg at it without having to teach it where exactly each .zfs directory is.
  • zfsnapr — recursively mount a system snapshot on a given location
    3 projects | /r/zfs | 27 Feb 2022

dotfiles

Posts with mentions or reviews of dotfiles. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-22.
  • Carapace: A multi-shell completion library and binary
    8 projects | news.ycombinator.com | 22 Apr 2024
    True, but you can represent that in the db as a a CLI invocation to run in a subshell.

    The big gain from something like carapace or my theoretical SQLite-based completion system is faster startup time. I had to remove zsh-completions from my shell setup as it added too much to the startup time (https://github.com/bbkane/dotfiles/blob/master/zsh/README_no...)

  • Ravi is a dialect of Lua, with JIT and AOT compilers
    7 projects | news.ycombinator.com | 18 Mar 2024
    "small embeddable dynamic languages" are usually used to configure or program other larger compiled applications. This is bes understood by example:

    https://create.roblox.com/docs/tutorials/scripting/basic-scr... - make a mini game in Roblox

    https://github.com/openresty/lua-nginx-module?tab=readme-ov-... - configure and extend NGINX

    https://wezfurlong.org/wezterm/config/lua/general.html - make your terminal more useful (my personal config changes the tab color based on the process name - https://github.com/bbkane/dotfiles/blob/master/wezterm/dot-c...

    https://m.youtube.com/watch?v=MQBr9hwf0BY - configure your text editor

  • We Have to Start Over: From Atom to Zed
    4 projects | news.ycombinator.com | 17 Feb 2024
    I switched to iTerm2 a few years ago due to blurry fonts on zoom with Terminal.app . Wonder if that's still a problem?

    A few months ago I switched to WezTerm and, after some config wrestling, I've been very happy using it (https://github.com/bbkane/dotfiles/tree/master/wezterm).

  • Teller: Universal secret manager, never leave your terminal to use secrets
    5 projects | news.ycombinator.com | 17 Jan 2024
    Yes, but it's super awkward to actually use day to day

    I've got something of a wrapper script at https://github.com/bbkane/dotfiles/blob/8573e44d0f9fb5ddcbdc...

  • Did OpenTelemetry deliver on its promise in 2023?
    6 projects | news.ycombinator.com | 12 Jan 2024
    It doesn't read from files unfortunately, but https://openobserve.ai/ is very easy to set up locally (single binary) and send otel logs/metrics/traces to.

    Here's how I run it locally for my little shovel project - https://github.com/bbkane/shovel#run-the-webapp-locally-with... .

    Also linked from that README is an Ansible playbook to start OpenObserve as a systems service on a Linux VM.

    Alternatively, see the shovel codebase I linked above for a "stdout" TracerProvider. You could do something like that to save to a file, and then use a tool to prettify the JSON. I have a small script to format json logs at https://github.com/bbkane/dotfiles/blob/2df9af5a9bbb40f2e101...

  • When I Stopped Trying to Self-Optimize, I Got Better
    4 projects | news.ycombinator.com | 26 Sep 2023
    That sounds super similar my setup ( https://github.com/bbkane/dotfiles/tree/master/zsh ). I'll check out a few of those I haven't yet.
  • Ask HN: Can I see your scripts?
    73 projects | news.ycombinator.com | 15 Aug 2022
    Here's a small script I use often to tag commits with Git.

    It shows the current status, lists out the most recent tags, prompts for a new tab and message, and finally pushes.

    Everything is colorized so it's easy to read and I use it quite often for Golang projects.

    https://github.com/bbkane/dotfiles/blob/e30c12c11a61ccc758f7...

  • What’s everyone working on this week (including AoC, 51/2021)?
    7 projects | /r/rust | 20 Dec 2021
    Ooh I'm doing this too, but with Python to add a "category" field (based mostly on description), nushell to munge the CSV into more CSVs so I can build html charts and tables with this script. in my opinion, transforming the two original CSVs (checking account and credit card history) into the html doc with all the charts is best done as this sort of pipeline so you can replace bits as you find better alternatives (for example I started with SQLite instead of nushell for the "child CSV" parts)
  • The joy of deleting code
    1 project | /r/programming | 25 Jan 2021
    I use https://github.com/bbkane/dotfiles/blob/master/bin_common/bin_common/git_lines_changed_tsv.sh to turn this into a tsv which can then be charted by piping to https://github.com/bbkane/dotfiles/blob/master/bin_common/bin_common/scatterplot.py .

What are some alternatives?

When comparing zfsnapr and dotfiles you can also consider the following projects:

BorgBackup - Deduplicating archiver with compression and authenticated encryption.

IKEv2-setup - Set up Ubuntu Server 20.04 (or 18.04) as an IKEv2 VPN server

ioztat - ioztat is a storage load analysis tool for OpenZFS. It provides iostat-like statistics at an individual dataset/zvol level.

dtrx - Do The Right Extraction

benchmarks - Benchmarks of different backup tools.

cpal - Cross-platform audio I/O library in pure Rust

RcloneZFSBackup - Backup ZFS snapshots to cloud storage using RCLone

dotfiles - @holman does dotfiles

borgmatic - Simple, configuration-driven backup software for servers and workstations

webscraping-benchmark - Web scraping API benchmark

borgtui - A nice TUI for BorgBackup

autobots - ⚡️ Scripts & dotfiles for automation and/or bootstrapping new system setup