Package Details: sanoid 2.1.0-1

Git Clone URL: (read-only, click to copy)
Package Base: sanoid
Description: Policy-driven snapshot management (sanoid), dataset sending/receiving (syncoid) and snapshot searching (findoid) tools for ZFS.
Upstream URL:
Licenses: GPL3
Submitter: fryfrog
Maintainer: fryfrog
Last Packager: fryfrog
Votes: 26
Popularity: 1.16
First Submitted: 2016-05-04 16:58 (UTC)
Last Updated: 2022-04-27 21:42 (UTC)

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

fryfrog commented on 2022-04-27 21:05 (UTC)

How does this sound?

Policy-driven snapshot management (sanoid), dataset sending/receiving (syncoid) and snapshot searching (findoid) tools for ZFS.

gertvdijk commented on 2022-04-27 20:57 (UTC)

I've got a suggestion for improvement; consider adding the term 'syncoid' and 'replication' somewhere in the description. It appears that syncoid is bundled with your sanoid package. Would make it a little easier to find when looking for the syncoid replication tool (as I was until moments ago). Thanks!

fryfrog commented on 2021-03-06 17:28 (UTC)

Thanks, done. It'll go out w/ the next update. :)

willemw commented on 2021-03-06 17:11 (UTC)

@fryfrog: note that you can use the same cd "${pkgname}-${pkgver}" in prepare() and remove ALL ${srcdir}/sanoid-${pkgver} elsewere.

fryfrog commented on 2021-02-25 16:35 (UTC)

Done, thanks for the review and suggestions!

willemw commented on 2021-02-25 11:09 (UTC)


Remove 'lzop: compression' or list all 6 of them (and then always keep that list up-to-date)? is renamed to LICENSE when installed.

You could get rid of all the ${srcdir}/sanoid-${pkgver} and add a cd in prepare().

fryfrog commented on 2021-02-24 17:27 (UTC)

Pushed, give it a look and see what you think.

fryfrog commented on 2021-02-24 17:21 (UTC)

0 ✓ fryfrog@apollo ~/aur/sanoid $[master] sudo systemctl status sanoid.timer sanoid.service sanoid-prune.service
● sanoid.timer - Run Sanoid Every 15 Minutes
     Loaded: loaded (/usr/lib/systemd/system/sanoid.timer; enabled; vendor preset: disabled)
     Active: active (waiting) since Wed 2021-02-24 08:41:55 PST; 37min ago
    Trigger: Wed 2021-02-24 09:30:00 PST; 10min left
   Triggers: ● sanoid.service

● sanoid.service - Snapshot ZFS Pool
     Loaded: loaded (/usr/lib/systemd/system/sanoid.service; static)
     Active: inactive (dead) since Wed 2021-02-24 09:15:05 PST; 4min 14s ago
TriggeredBy: ● sanoid.timer
    Process: 1332231 ExecStart=/usr/sbin/sanoid --take-snapshots --verbose (code=exited, status=0/SUCCESS)
   Main PID: 1332231 (code=exited, status=0/SUCCESS)

● sanoid-prune.service - Cleanup ZFS Pool
     Loaded: loaded (/usr/lib/systemd/system/sanoid-prune.service; disabled; vendor preset: disabled)
     Active: inactive (dead) since Wed 2021-02-24 09:15:09 PST; 4min 10s ago
    Process: 1333048 ExecStart=/usr/sbin/sanoid --prune-snapshots --verbose (code=exited, status=0/SUCCESS)
   Main PID: 1333048 (code=exited, status=0/SUCCESS)

^ It seems to run even w/o being enabled, so that is nice I guess. And since /usr/sbin is a symlink to /usr/bin, I think we could get away w/o doing anything? Probably nicer to just fix it though. I agree on the TZ, may as well leave it in.

willemw commented on 2021-02-24 17:15 (UTC) (edited on 2021-02-24 17:16 (UTC) by willemw)

@fryfrog: TZ=UTC is recommended and they are the official upstream .service and .timer files. I think it is better to install those files.

sanoid-prune.service will run after sanoid.service:

# Enable sanoid-prune.service to allow it to be triggered by sanoid.service

Not sure right now whether TZ=UTC will cause any serious problems with sanoid or with syncoid. It might be that some extra snapshots will be created, which hopefully will be pruned away.

Maybe you need to patch the service files in prepare(): /usr/sbin/ -> /usr/bin/.

fryfrog commented on 2021-02-24 16:36 (UTC) (edited on 2021-02-24 16:58 (UTC) by fryfrog)

Thanks for the suggestions, I've fixed the license, removed provides and conflicts and perl.

For the services, do you think the Environment=TZ=UTC will cause any problems? Also, the sanoid-prune.service gets run because of the Wants=sanoid-prune.service in sanoid.service right?

Edit: The TZ=UTC does indeed cause the snapshot times to be UTC, which... I don't love, but I also don't hate.

willemw commented on 2021-02-24 10:09 (UTC)

@fryfrog: Please add the sanoid-prune.service file. Sanoid already includes .service files and a .timer file. Can those files be reused?

conflicts= and 'perl' are redundant. License is 'GPL3'.

fryfrog commented on 2019-01-21 04:47 (UTC)

@cyounkins, done but I didn't bump pkgrel so it'll go out w/ next update.

cyounkins commented on 2019-01-20 21:31 (UTC)

The systemd timer's OnCalendar is very confusing, and is probably better just 'minutely'

fryfrog commented on 2017-07-29 03:34 (UTC)

There doesn't actually appear to be a 1.4.15 version posted yet.

fryfrog commented on 2017-01-19 00:55 (UTC)

Actually, it did eventually load and I noticed there was a new version... so I gave it a shot, flagged mbuffer out of date, made a diff and posted it to mbuffer aur.

alaricljs commented on 2017-01-19 00:37 (UTC)

Yep, no idea for how long or if it will be back or be replaced. Thanks for the change :)

fryfrog commented on 2017-01-18 23:39 (UTC)

Done! It looks like mbuffer's source site is down?

alaricljs commented on 2017-01-18 23:20 (UTC) (edited on 2017-01-18 23:20 (UTC) by alaricljs)

Can you make lzop, mbuffer, and pv optdepends? According to upstream they are 'used if available' so optdepends should be sufficient. This will also resolve the issue of mbuffer not being available at this point in time. optdepends=('pv: progress bars' 'lzop: compression' 'mbuffer: stream buffering')

liketechnik2000 commented on 2016-12-19 20:51 (UTC) (edited on 2016-12-19 21:15 (UTC) by liketechnik2000)

Np That happens, but if it gets fixed now, I'm okay with it. Btw, nice that you provide that package in aur :)

fryfrog commented on 2016-12-19 20:48 (UTC)

Sorry about that, I had fixed it locally and in sandoid-git, but forgot to amend my commit before pushing.

fryfrog commented on 2016-12-19 20:47 (UTC)


fryfrog commented on 2016-12-19 20:47 (UTC)

I did exactly that, the new PKBUILD has a line: backup=('etc/sanoid/sanoid.conf')

liketechnik2000 commented on 2016-12-19 20:44 (UTC)

For me the backup statement did not work as it is, yaourt told me the leading slash was not allowed. I removed it so I had 'etc/sanoid/sanoid.conf' in the backup statement brackets and pacman kept the old file and saved the new one as *.pacnew file. It would be nice if this would be fixed.

fryfrog commented on 2016-12-19 17:37 (UTC)

Thanks, fixed! :)

commented on 2016-12-19 15:44 (UTC)

Am I missing something, or does this package currently overwrite changes in the config file? The files in /etc/sanoid should be in backup=()!

danarmak commented on 2016-07-16 14:51 (UTC)

Missing dependency on perl-config-inifiles.

fryfrog commented on 2016-07-11 20:30 (UTC)

Thanks, fixed! :)

mmanjos commented on 2016-07-11 20:23 (UTC)

I believe there's a typo in the directory the config files are being installed to. Currently, the PKGBUILD reads as "/etc/sandoid" but I believe it should be /etc/sanoid After fixing that manually, the package works great for me. Thanks for providing it on AUR!