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;fingerprint=ssh-dss-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00@ftp.xyz.com/test/uploadfilehere/ # Upload file lcd D:\Shares\takefilefromhere\ put *.bkp /test/uploadfilehere/ latest -nopreservetime exit
Thank you in advance.