I backup my hard drive through sudo zfs send snapshot | sudo tee /my-mount-point/my-snapshot.zfs > /dev/null
, and I want to make sure that I don't accidentally unmount (and turn off) /my-mount-point.
Now, had I cd
into there, it wouldn't be a problem, as I would get umount: /my-mount-point: target is busy.
. But with tee
, it doesn't do that.
Moreover, when I try running lsof | grep "my-mount-point"
, I get nothing. If I cd into my-mount-point, lsof will show it. Otherwise, nothing.
Is there a way to get if something's writing to a file under my-mount-point
?
tee
,sudo zfs send snapshot > /my-mount-point/my-snapshot.zfs
is enough, isn't it?sudo
call, you're sure?