synchronize and delete files

Advertisement

Edgar00
Guest

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum