sanoid icon indicating copy to clipboard operation
sanoid copied to clipboard

Syncoid: storing target identifier in properties?

Open pavhofman opened this issue 2 years ago • 2 comments

Hi,

Please would it make sense to store the target identifier passed at the initial synchronization to the target root dataset properties? The next run could read this identifier, without having to pass the correct one to the syncoid params.

IMO this could reduce the risk of entering an identifier which does not correspond to the given target.

Thanks a lot for any response.

With regards,

Pavel.

pavhofman avatar Jan 31 '23 09:01 pavhofman

It doesn't for me :-) Can you explain what you are trying to solve here?

phreaker0 avatar Jan 31 '23 10:01 phreaker0

My use case is quite standard - several local backup drive sets, basically rotated (but with skips). Since the synchronization command should use the --identifier param corresponding to the given drive in such case, there is quite a high chance of mistake. That's why I am wondering whether the drive-set specific identifier could be read from some custom property on the target, e.g. optionally, with some --use-stored-identifier option...

Thanks,

Pavel.

pavhofman avatar Jan 31 '23 10:01 pavhofman