Hello,
I have been using scp command to transfer a bunch of files from one server to another server. The process is " (a) to create the files, (b) transfer those from server X to server Y and (c) then perform NEXT process". If NEXT (that is (c) ) process fails then then we retry the whole process. This mean we try to execute the scp command again. The twist is scp command fails if it finds that the files are already existent.
My question is that is there any way to forcibly copy the files again or provide some option that step (b) does not give any error. The problem is that if I encounter any problem in scp command (that is (b) ), I re execute the whole process and I do not have the authority to delete any files on server Y, so I have to succed in the scp command.
Please help me if you have some suggestion
Shilpa