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
Hi nice script. But there could be problems if you have a dataset with the same name as a pool.
so, in check_last_source_snap()
last_snap_source=$( zfs list -o name -t snapshot -H 2> $0.err | grep $SRC_PATH@ | tail -1 )
should be :
last_snap_source=$( zfs list -o name -t snapshot -H 2> $0.err | grep ^$SRC_PATH@ | tail -1 )