Advertisement
Guest User

John - Dataset Destroy

a guest
Apr 20th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Hi Guys,
  2.  
  3. Quick question my google foo is failing me on... how do i delete
  4. multiple datasets with the same prefix (i have about 100) in a single
  5. command? i have other datasets i need to keep or i would just blow
  6. away the whole volume and start again.
  7.  
  8. so example
  9.  
  10. vol = baz
  11. dataset = foobar
  12. dataset = foobang
  13. dataset = foofizz
  14. ......
  15. ...
  16. ..
  17.  
  18. so i would expect
  19.  
  20. zfs destroy -R baz/foo*
  21.  
  22. to work... but no.... i get
  23.  
  24. too many arguments
  25. usage:
  26. destroy [-fnpRrv] <filesystem|volume>
  27. destroy [-dnpRrv] <filesystem|volume>@<snap>[%<snap>][,...]
  28. destroy <filesystem|volume>#<bookmark>
  29.  
  30. For the property list, run: zfs set|get
  31.  
  32. For the delegated permission list, run: zfs allow|unallow
  33.  
  34. any bones to throw my way?
  35.  
  36. Thanks and great work!
  37.  
  38. John
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement