ZFS: export dataset

zpool import 917239494398087781 bpool-old
 
ZFS_DATASET=rpool/USERDATA/foo_g7a1a3
zfs set mountpoint=legacy ${ZFS_DATASET}
mount -t zfs ${ZFS_DATASET} /mnt
zfs list ${ZFS_DATASET}
du -sh /mnt/*
ls -la /mnt
 
tar -C /mnt --use-compress-program=pbzip2 -cf /media/backup/${ZFS_DATASET////_}.tar.bz2 .
 
# delete datasets
zfs destroy ${ZFS_DATASET}
 
# delete pool
zpool destroy ${ZFS_DATASET}