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 "The filename, directory name, or volume label syntax is incorrect."
Can someone help with the correct syntax?
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"