Does it? This looks more like a big field were I can fill in the commands to do that all by myself.
in hopes that the file on the server did not get modified in the meantime
Yeah... locking the file on the remote would be the absolute minimum for an actual sync tool.