Ok here is what I am trying to do.
I need to SCP files from one server to the other at intervals. As I send the files I am going to append a file with the filenames of everything that I send. (This is only for a 2 day migration) Archive logs are what I am sending. As the files are sent more files are going to be created so I need to be able to have a way to compare what has been sent to what needs to be sent. The other problem I have is I can not send the current file that is being updated.
I thought I could use something like.
find . -newer files_sent -print>files_to_be_sent
The problem that I am worried about is what happens if a file is completed while a file is being sent. How do I keep from missing a file. There has to be another way to do this that is still effecient. Anyone who has something that I could use would be great. I know this is probably easy for you seasoned scripters. I stumble through scripts since I mainly do Storage.
Thank you in advance
I need to SCP files from one server to the other at intervals. As I send the files I am going to append a file with the filenames of everything that I send. (This is only for a 2 day migration) Archive logs are what I am sending. As the files are sent more files are going to be created so I need to be able to have a way to compare what has been sent to what needs to be sent. The other problem I have is I can not send the current file that is being updated.
I thought I could use something like.
find . -newer files_sent -print>files_to_be_sent
The problem that I am worried about is what happens if a file is completed while a file is being sent. How do I keep from missing a file. There has to be another way to do this that is still effecient. Anyone who has something that I could use would be great. I know this is probably easy for you seasoned scripters. I stumble through scripts since I mainly do Storage.
Thank you in advance