I have a program assigning serial numbers on a client PC (Windows XP). It writes a log to a server file share (Windows Server 2003), and also locally in case of network error. (This means that the vast majority of lines are in both files.) Every once in a while, the write to the server log does fail. Is there a good way to merge the two log files, restoring the missing entries?
I'd rather not do a full copy; there is currently some data which is only on the server copy, and I also want to leave open the possibility of multiple stations.
It should be fairly easy to do an interactive merge, but I would prefer something automatic, since it's basically set-union on the lines of the files.