You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run zfs-auto-snapshot --syslog --label=daily --keep=3 --destroy-only myzpool it keeps the last 2 snapshots, not 3.
Similarly zfs-auto-snapshot --syslog --label=daily --keep=2 --destroy-only myzpool it keeps the last 1 snapshot, not 2.
Ubuntu 18.04.5, installed zfs-auto-snapshot using apt install. I don't know what version of it I have - it doesn't report that and there is no --version.
The text was updated successfully, but these errors were encountered:
Basically from a quick skim, I think it is because the "destroy" loop assumes that it just created a snapshot. One workaround is after reading the args, just decrement increment $opt_keep by one if --destroy-only was given.
When I run
zfs-auto-snapshot --syslog --label=daily --keep=3 --destroy-only myzpool
it keeps the last 2 snapshots, not 3.Similarly
zfs-auto-snapshot --syslog --label=daily --keep=2 --destroy-only myzpool
it keeps the last 1 snapshot, not 2.Ubuntu 18.04.5, installed zfs-auto-snapshot using
apt install
. I don't know what version of it I have - it doesn't report that and there is no--version
.The text was updated successfully, but these errors were encountered: