Freebsd, zfs, and raw copy on write image backups issue

server 2.1.19

Whenever attempting to do a raw COW image backup, I receive 1 of two errors on all windows machines…

“Backing up System Reserved (SYSVOL) partition failed. Image backup failed”
or
“Error creating file for writing MBR data. Permission denied (code: 13)”

normal VHD and file backups work fine

ALL_NONUSB set

urbackup:urbackup has ownership -R of /tank and /usr/local/var/urbackup

echo “tank/images” > /etc/urbackup/dataset
echo “/tank/urbackup” > /etc/urbackup/backupfolder

urbackup_snapshot_helper tests OK and folders get created in /tank/images for the backups

where else should I check for permissions? Thanks.

You are running it as non-root user?

I haven’t tested that. Maybe the newly created zfs snapshots have permissions such that only root can write to them?

yes, that appears to be the case. It works when run as root.

Looking at the code it tries to set the folder of the zfs subvol to urbackup already