This is a CLI based variant of sysutils/zfs-snap-diff I've called it zsd-cli due to there already being another port called sysutils/zsd which refers to a different tool. - portlint: OK (looks fine.) - testport: OK (poudriere: <11.4-RELEASE, 11.4-STABLE, 12.2-RELEASE, 12.2-STABLE, 13.0-RELEASE, 13.0-STABLE, 14.0-CURRENT>, < amd64/i386 >, <manpages + with/without extended> tested)
Created attachment 227858 [details] git diff for new port
Hello Ben, Looks good. I made a few minor modifications: - Add missing directory to sysutils/Makefile - Minor reordering to satisfy portclippy/portfmt - Minor wording change to shorten comment - Minor changes to pkg-descr and update WWW to use the site pointed to by the author There seems to be a problem with my run-time tests, or I don't understand how it's supposed to work. For a certain file, ~/scm/ports-scripts.git/stage, I see lots of snapshots and I can do diffs showing there have been changes. Also, zfs-snap-diff says "11 file versions between 18 September 2021 and 20 September 2021 found". However, zsd reports jrm@phe ~ % zsd -d 10 /home/jrm/scm/ports-scripts.git/stage list scan the last 10 days for other file versions # | File changed | Snapshot | Snapshot age -------------------------------------------- Am I missing something? Thanks, Joe
(In reply to Joseph Mingrone from comment #2) Hi Joe, Please accept my apologies for the slow reply - it's been a busy week! I'm not seeing the same on my system. Unfortunately I don't have a system with many recent snapshots here, but I do have some fairly old snapshots: root@zotac-bsd:~ # zfs list -t snap | wc -l 492 root@zotac-bsd:~ # zfs list -t snap zroot/backup/manaha/zroot/iocage/jails/mysql/root | wc -l 40 root@zotac-bsd:~ # /tmp/zsd -d 430 -H /backup/manaha/zroot/iocage/jails/mysql/root/backup/gitea.sql list | wc -l 35 zfs-snap-diff reports: > 36 file versions between 01 February 2020 and 23 September 2021 found. That'll be 25 files + live version root@zotac-bsd:~ # freebsd-version -ku 13.0-RELEASE-p4 13.0-RELEASE-p4 Can you reproduce the problem for other files? Or is it just this one?
Hello Ben, My turn to apologize for the slow reply. Sorry, I lost track of this bug. I'm crunched for time at the moment, so going to add it back to the pool, so another developer can pick it up.
I don't have time to maintain this - if someone else would like this in the Ports tree they could maybe pick up where I left off...