a guest Oct 21st, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- TODAY=$(date +"%Y-%m-%d_%H%M.%S")
- zfs snapshot $DATASET@auto_$TODAY
- zfs list -t snapshot -o name -S creation | grep data@auto | tail -n +$(($SNAP_NUM+1)) | xargs -n 1 zfs destroy -vr
RAW Paste Data