daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DATASET="data/moodle_data"
  2. SNAP_NUM=14
  3. TODAY=$(date +"%Y-%m-%d_%H%M.%S")
  4. zfs snapshot $DATASET@auto_$TODAY
  5. 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top