bellhyve / zelta

ZFS tools used for data migration and backup management.
Other
38 stars 6 forks source link

Behave better if it doesn't have the right permissions #5

Closed bellhyve closed 10 months ago

bellhyve commented 10 months ago

I got an endless loop after successful transmission with a zfs allow user who didn't have appropriate permissions.

outerspace/Backups/kms.bts@2024-01-10_00.00.00--1w: 1G received
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
...
bellhyve commented 10 months ago

It's not an endless loop—"zsync -R" was properly replicated 593 snapshots, and it gave 593 errors. I added repeated error suppression to make human and JSON output more sane.

error: cannot receive canmount property on boot07/zelta/kms.bts13: permission denied
error: cannot receive canmount property on boot07/zelta/kms.bts13: permission denied
error: above error repeated 592 times
2G sent, 593/593 streams received in 63.43 seconds