Topic "synchronization work on batch mode not properly"

Author Message
scheste
[View user's profile]

Joined: 2008-05-13
Posts: 7
Location: Germany, 73037 Gppingen
Hello,

I will synchronize with WinSCP 4.2.9 from a SFTP server to my local storage.
The SFTP server is a linux machine and my PC have Windows 7
The problem is, that the batch mode not working proberly.
There have been no changes to the source
But with the WinSCP GUI display`s the changes and works!

Screenshots of the GUI:




The Batch Script:

del C:\tools\EMMA.log
winscp.com /script=c:\Tools\EMMA.txt /log=C:\tools\EMMA.log

The TXT File:

option batch on
option confirm off
open sftp://sftpuser:password@1.1.1.1
cd mfg
option exclude "/var/data/emma/mfg/TEST DROP BOX - DO NOT USE; /var/data/emma/mfg/Shini Test; /var/data/emma/mfg/2000-000; /var/data/emma/mfg/Artwork; /var/data/emma/mfg/TD*; /var/data/emma/mfg/*old*; /var/data/emma/mfg/*test; /var/data/emma/mfg/*move; /var/data/emma/mfg/123; .bash_history; *.shs; *.txt; *.sfv; *log; *.tar; *.svf; *.md5; *.sh1; *.crc; *.old; *.pdf; *.jpeg; *.jpg; *.doc; *.mds;"
lcd E:\Images\Images\PACS
synchronize local -mirror -delete
exit


It should be, for both methods at the same settings.
or I have an error in the script?

Kind Regards,
Stefan

Last edited by scheste on 2010-10-01 10:02; edited 1 time in total
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please post a full log file showing the problem (for both cases).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
scheste
[View user's profile]

Joined: 2008-05-13
Posts: 7
Location: Germany, 73037 Gppingen
hello,

I will send a email with both log files!

Regards,
Stefan
scheste
[View user's profile]

Joined: 2008-05-13
Posts: 7
Location: Germany, 73037 Gppingen
Hello,
I think the problem is solved.
I have disabled the option synchdelete and have create a new text file with the parameters.
Now I found no sync issues between the batch script and the gui.
but I will check regularly.

Regards,
Stefan
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License