Package Details: sanoid 2.2.0-1

Git Clone URL: https://aur.archlinux.org/sanoid.git (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: https://github.com/jimsalterjrs/sanoid
Licenses: GPL3
Submitter: fryfrog
Maintainer: fryfrog
Last Packager: fryfrog
Votes: 35
Popularity: 0.141692
First Submitted: 2016-05-04 16:58 (UTC)
Last Updated: 2023-07-18 17:09 (UTC)

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

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)

@fryfrog:

Remove 'lzop: compression' or list all 6 of them (and then always keep that list up-to-date)?

README.md 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: https://github.com/jimsalterjrs/sanoid/blob/master/INSTALL.md

# 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.