Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Edgar00

synchronize and delete files

Hello everyone

I am new using this tool, use the following script to synchronize files from a remote folder called "cdr" to a local folder called "CDRTEST"

option batch abort
option confirm off
open sftp://root:Jksldes***@192.168.202.2:451/ -hostkey="ssh-Za26611 254 3c:81:t5:e7:41:79:00:a0:77:e7:d1:2a:c1:51:7c:b2"
synchronize local C:\Users\CDRTEST /cdr
exit

the script works correctly, but I need to delete the files in the CDR folder after synchronizing them, any recommendations?


I had thought of the following line:

put -delete local C:\Users\CDRTEST /cdr

Is my interpretation correct?