#1009267 zfsnap fail to delete snapshorts if left without removal for three years

#1009267#5
Date:
2022-04-10 17:08:29 UTC
From:
To:
After using zfsnap for a few years, I discovered that I had forgotten
the -d option when calling it to make snapshots every hour and keep them
for 5 days.  The end result is a lot of snapshots I am currently trying
to get rid of.  I am currently running 'zfs destroy' in a for look to
remove them, as the -d option only reported this error when trying to
let zfSnap take care of it:

  /usr/sbin/zfSnap: 410: grep: Argument list too long
  xargs: printf: terminated by signal 13

Perhaps the code could be rewritten to handle more snapshots to remove?

#1009267#10
Date:
2022-04-11 06:08:12 UTC
From:
To:
For the record, I had around 170 000 snapshots when I started.

I am currently trying to reduce it by running variations of this
oneliner to get rid of them, to allow zfSnap -d to work again.

  for v in $(zfs list -t snapshot zfstank/volume | \
             awk '/2019.*--5d/ {print $1}'); do zfs destroy $v; done