zfsnapr
hacker-scripts
Our great sponsors
zfsnapr | hacker-scripts | |
---|---|---|
7 | 70 | |
21 | 47,162 | |
- | - | |
5.6 | 0.0 | |
8 months ago | 6 months ago | |
Ruby | JavaScript | |
BSD 2-clause "Simplified" License | - |
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
-
Kopia: Open-Source, Fast and Secure Open-Source Backup Software
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
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
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?
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
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
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
hacker-scripts
-
Cum va arăta Moldova peste 20 de ani?
India has hundreds of millions of English speakers, is it a stellar IT nation? It can only boast a dozen puppet top execs of Indian origins in US megacorps like Microsoft and Google. And a few hundred thousands of office drones on H-1B visas. Half of them probably already got used as ass wipes and fired during the post-pandemic mass layoffs. Are there so many reasonably known Indian programmers? If the ones working in IT companies may not be known due to NDAs and code being proprietary, they should have as many known contributors to free software. Where are they? Do you know many? I know ONLY ONE. All India is known for are mean memes like the one about Kumar the proverbial asshole. You can read more about it here if you're not familiar https://github.com/NARKOZ/hacker-scripts
-
Bill Gates said, "I will always choose a lazy person to do a difficult job because a lazy person will find an easy way to do it." What's a real-life example of this?
This story comes to mind. It could very well be made up, but someone else made those scripts inspired by the story.
-
I have slowly but surely automated nearly all of my ER and even "ER" tickets when I'm off with the exception of network down level scenarios.
kumar-asshole.sh
- Hacker Scripts
- What tools/internal projects/app/scripts/automation stuff have you built at work to improve your development experience?
-
Now that's what I call an hacker
This is the script used to talk to the coffee machine:
https://github.com/NARKOZ/hacker-scripts/blob/master/fucking...
I wonder how many other devices talk telnet and have a weak password. Would be cool to have a database of such models.
-
Ask HN: Most interesting tech you built for just yourself?
This reminded me of this internet folklore: https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-...
There is also a recreation of the scripts at https://github.com/NARKOZ/hacker-scripts
-
What do you do to achieve this catastrophy?
This is it, not sure if it's the original
-
Thread Diario de Dudas, Consultas y Mitaps - 28/03
nunca te olvides de esto...
- See on kõikide eest, kes on Eestis Youtube'i kasutanud ilma adblockita
What are some alternatives?
BorgBackup - Deduplicating archiver with compression and authenticated encryption.
stylus - Stylus - Userstyles Manager
ioztat - ioztat is a storage load analysis tool for OpenZFS. It provides iostat-like statistics at an individual dataset/zvol level.
cmdg - Command line Gmail client
benchmarks - Benchmarks of different backup tools.
IKEv2-setup - Set up Ubuntu Server 20.04 (or 18.04) as an IKEv2 VPN server
RcloneZFSBackup - Backup ZFS snapshots to cloud storage using RCLone
malten - Anonymous ephemeral messaging
borgmatic - Simple, configuration-driven backup software for servers and workstations
Anime-Girls-Holding-Programming-Books - Anime Girls Holding Programming Books
borgtui - A nice TUI for BorgBackup
Dkron - Dkron - Distributed, fault tolerant job scheduling system https://dkron.io