This is an old revision of the document!


Remove all snapshots of a dataset:

zfs destroy -rvn dataset_or_vol_name@%

or selectively via grep:

zfs list -H -o name -t snapshot | grep ola/lala@2019 | xargs -n1 zfs destroy -n

List all snapshots:

zfs list -t snapshot

Copy dataset recursively

zfs snapshot -r tank/dataset@fullbackup
zfs send -R tank/dataset@fullbackup | pv | zfs receive -vFdu myBackupPool
zfs destroy -r tank/dataset@fullbackup
  • faq/zfs.1561899788.txt.gz
  • Last modified: 4 months ago
  • by Dr Serge Victor