Automation to move the files from one ssh to another ssh
Hi Team,
I have a requirement where I need to move the files from one server to another server
SERVER1 - Source
Files in a folder
/example/Sample107-20-21 12:34:34.dat.gz
/example/Sample207-20-21 12:43:34.dat.gz
/example/Sample207-20-21 12:53:34.dat.gz
/example/Sample207-20-21 12:53:34.dat.gz
/sample/Test1.txt
/sample/Test2.txt
If we above the above list of files some of the files are timestamped with date and time
and the /sample/Test1.txt and Test2, txt files are without timestamp. The timestamped files are gz need to be unzipped and renamed to Sample1.dat
So I would like to read all files daily from the above folder and copy them into a different server
SERVER2 - Destination
//destination/Sample1.dat
//destination/Sample2.dat
//destination/Sample3.dat
//destination/Test1.txt
//destination/Test1.txt
Can you please help me to prepare an automation script using WinSCP and complete this task.
I have a requirement where I need to move the files from one server to another server
SERVER1 - Source
Files in a folder
/example/Sample107-20-21 12:34:34.dat.gz
/example/Sample207-20-21 12:43:34.dat.gz
/example/Sample207-20-21 12:53:34.dat.gz
/example/Sample207-20-21 12:53:34.dat.gz
/sample/Test1.txt
/sample/Test2.txt
If we above the above list of files some of the files are timestamped with date and time
and the /sample/Test1.txt and Test2, txt files are without timestamp. The timestamped files are gz need to be unzipped and renamed to Sample1.dat
So I would like to read all files daily from the above folder and copy them into a different server
SERVER2 - Destination
//destination/Sample1.dat
//destination/Sample2.dat
//destination/Sample3.dat
//destination/Test1.txt
//destination/Test1.txt
Can you please help me to prepare an automation script using WinSCP and complete this task.