Transfer files from Windows to Linux
Hello,
I'm trying to create a batch file to automate the process of log transfer of logs from Windows server to Linux server using WinSCP commands for logs that are greater than or equal to 1 day. I have the following command and it fails with the message
Below is the command.
I'm trying to create a batch file to automate the process of log transfer of logs from Windows server to Linux server using WinSCP commands for logs that are greater than or equal to 1 day. I have the following command and it fails with the message
Can someone help with the correct syntax?The filename, directory name, or volume label syntax is incorrect.
Below is the command.
winscp.exe /ini=nul /log=C:\winscp\winscp.log /command "open sftp://account@ip_address -privatekey="C:\privatekey.ppk"" "put -filemask="*>=1D "D:\logs\* /linuxserver/logs/" "exit"