create script that synchronizes files and deletes synchroniz

Advertisement

Mahdi Bashiri
Joined:
Posts:
25

create script that synchronizes files and deletes synchroniz

Hi
I have created script that synchronizes files from local path to remote site and deletes source files afterward, but in sometimes the file does not transfer completely by link down or remote site load traffic, i would like to know can i use "-criteria=size" before "-delete" option or no like this:
synchronize remote D:\IscFtp\BLC\SND_SP BLC\SND_SP -criteria=size -delete
please let me know this script line is correct ot need more issue to do this

Regards,
Mahdi

Reply with quote

Advertisement

Mahdi Bashiri
Joined:
Posts:
25

Re: create script that synchronizes files and deletes synchroniz

martin wrote:

Please read FAQ:
https://winscp.net/eng/docs/faq_delete_synchronized_files

If that does not help, come back.

Hi
I used below command to auto transfer (Upload) to remote site:

winscp /command "option batch abort" "option confirm off" "open RemoteSite" "put E:\Backup_*.* / -criteria=size -delete" "exit" > E:\RemoteSiteUpload.txt

but i got below error

batch abort
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "username".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] RemoteSite
Unknown switch 'criteria'.


please let me know how can i fix it.
Regards,
Mahdi

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: create script that synchronizes files and deletes synchroniz

synchronize remote -criteria=size -filemask=file_to_synchronize.ext c:\local_folder /remote_folder

Reply with quote

Advertisement

You can post new topics in this forum