UC-2363: HA backup/restore on different nodes

-make sure to write backup: entry in yaml only if we have something to backup on that node
-test added
-fixed precommit