To go along with the previous idea, before starting to scp'ing your file, touch a filename.size file which only contains the size of the file you are about to scp. That way, your server could look at the size file and figure out if the actual file is completely there.