I set up a new backup server and moved two HDDs which were in a zfs mirror on another computer to the new one. Then i imported them and upgraded the pool (since the version of ubuntu is different). Everything looks fine. So far no errors on the scrub.
I am trying to use syncoid to send the latest snapshots from my main server to the backup but am getting a permissions error:
Here is the command I am using on my production server:
You’re trying to do a (push) backup from your source machine, to your target backup server. Further, you are pushing it to a common user on the target end with no elevated privileges. This can be problematic on the remote end if that user does not have adequate permissions to run syncoid and write data, where parts of that data on source is owned by root, and must be owned by root on the remote end as well. It would be like you trying to touch a file into a root owned directory without using sudo.
I like to set up a separate single purpose user on the remote end that only has permission to run commands for just this purpose, and nothing else. I normally do mine in reverse, as a (pull) in from source to target - but from a permission standpoint, it’s the same principal.
Now, if you were sending a pool called, for example ‘photospool’ - your command would probably work because it’s doubtful that there are any locations recursively in a pool containing only photos that will need to have any root ownership.
It’s possible to push directly into the remote server as root but your remote host would need to permit root access. Usually not recommended unless you are doing it for just a one-off purpose.
Edit: Worth mentioning that if you cannot SSH into the remote host user to begin with, then that’s the beginning of your problem. Test your access with SSH first. The permission stuff mentioned above is next level once SSH is working.