PUT latest file on sftp site
Please let me know where went wrong in below code.
I am trying to upload only latest file out of all .bkp files. Each .bkp file generates every 15 minutes. I need to pickup latest .bkp file from list of files.
# Connect to SFTP server using a password open sftp://wonder:Password;firstname.lastname@example.org/test/uploadfilehere/ # Upload file lcd D:\Shares\takefilefromhere\ put *.bkp /test/uploadfilehere/ latest -nopreservetime exit
Thank you in advance.