Package Details: sanoid 2.1.0-1

Git Clone URL: https://aur.archlinux.org/sanoid.git (read-only, click to copy)
Package Base: sanoid
Description: A policy-driven snapshot management tool for ZFS filesystems.
Upstream URL: https://github.com/jimsalterjrs/sanoid
Licenses: GPL3
Submitter: fryfrog
Maintainer: fryfrog
Last Packager: fryfrog
Votes: 19
Popularity: 0.31
First Submitted: 2016-05-04 16:58
Last Updated: 2021-04-01 16:13

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

fryfrog commented on 2021-03-06 17:28

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

willemw commented on 2021-03-06 17:11

@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

Done, thanks for the review and suggestions!

willemw commented on 2021-02-25 11:09

@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

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

fryfrog commented on 2021-02-24 17:21

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

@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

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

@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

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