Automated snapshots?

All your general support questions for OpenZFS on OS X.

Re: Automated snapshots?

Postby Sharko » Sun Jun 27, 2021 3:25 pm

Sorry, that was poor wording on my part. You can use cron, but cron is deprecated and may go away at some point. I'm surprised that it hasn't disappeared entirely yet. This little project was an excuse to learn some of the mysteries of launchd, staying within the lanes of what Apple recommends.
Sharko
 
Posts: 146
Joined: Thu May 12, 2016 12:19 pm

Re: Automated snapshots?

Postby xenophon » Tue Jun 29, 2021 5:45 am

I've used zfs-auto-snapshot (https://github.com/zfsonlinux/zfs-auto-snapshot) for years, but for some reason I've long disabled it in OS X. My Ubuntu and Proxmox servers run fine with it.

To make a long story short, based on advice from this forum, I tried znapzend on my Mac running the latest Big Sur / OpenZFS over the weekend, and was really impressed: it can be installed either by Homebrew, or via the GitHub page (https://github.com/oetiker/znapzend - ran into some permissions issues in the end, but opted for that).

Of note, it creates snapshots on the source dataset, but also replicates (via zfs send) to a backup location.

It was a revelation to update the backup of a 40G file (that used to take a loooong time with rsync) in just a few seconds!
xenophon
 
Posts: 14
Joined: Tue Jul 28, 2015 11:58 pm

Re: Automated snapshots?

Postby tangles » Fri Jul 02, 2021 3:55 pm

Hey hey!

Am glad to hear you had a go using zfs snd/rcv to backup that 40GB file via snapzend.

ZFS is so nice for backing up… glad you like!
tangles
 
Posts: 185
Joined: Tue Jun 17, 2014 6:54 am

Previous

Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron