Topic "Synchronize file to local failed using winscp514"

Author Message
Chris Chen

Guest


Dear Sir,

I tried to synchronize folder from remote to local below, but the synchronizing always perform with no change. The Synchronizing message is shown followed by "params = 4102" in the end of log, do you know what that mean? And what reason towards to the problem? Thank you.
Pls. see the script:
===>
option batch on
option confirm off
open sftp://ID:PWD@IP
option transfer binary
synchronize local d:\QSG /QSG -mirror
exit

The log file:
'd:\QSG' and remote directory '/QSG', mode = 1, params = 4102
. 2013-04-21 20:24:35.621 Local file 'd:\QSG\.' [2013-04-19T14:24:39.410Z] [0] excluded from synchronization
. 2013-04-21 20:24:35.621 Local file 'd:\QSG\..' [2013-04-19T14:24:39.410Z] [0] excluded from synchronization
. 2013-04-21 20:24:35.622 Listing directory "//QSG".
> 2013-04-21 20:24:35.622 Type: SSH_FXP_OPENDIR, Size: 39, Number: 267
< 2013-04-21 20:24:35.932 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2013-04-21 20:24:35.932 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2013-04-21 20:24:36.238 Type: SSH_FXP_NAME, Size: 365, Number: 524
> 2013-04-21 20:24:36.239 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2013-04-21 20:24:36.541 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2013-04-21 20:24:36.541 Status code: 1
> 2013-04-21 20:24:36.541 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2013-04-21 20:24:36.545 Remote file '/QSG/720-00020.zip' [2013-04-19T02:41:22.000Z] [44516011] is new
< 2013-04-21 20:24:36.545 Script: Synchronizing...
. 2013-04-21 20:24:36.546 Synchronizing local directory 'd:\QSG\' with remote directory '/QSG/', params = 4102
> 2013-04-21 20:24:36.546 Script: exit
. 2013-04-21 20:24:36.547 Script: Exit code: 0
. 2013-04-21 20:24:36.547 Closing connection.
. 2013-04-21 20:24:36.547 Sending special code: 12
. 2013-04-21 20:24:36.547 Sent EOF message

Thank you.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
The "params = 4102" means (among other) that you have Existing only option set. This can be configured in GUI only, unset it there.

You might want to consider also to run the script in environment isolated from the GUI.
_________________
Martin Prikryl
Chris Chen

Guest


Hello Admin,

Thanks for your reply.
I'd want to ask you what the Existing only mean? How could I unset it in Win7? Actually this problem seems not happen in my another Win7 NB, but bothering me in this mentioned machine. Please help, thank you.

Chris

prikryl wrote:
The "params = 4102" means (among other) that you have Existing only option set. This can be configured in GUI only, unset it there.

You might want to consider also to run the script in environment isolated from the GUI.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Chris Chen wrote:
I'd want to ask you what the Existing only mean? How could I unset it in Win7? Actually this problem seems not happen in my another Win7 NB, but bothering me in this mentioned machine. Please help, thank you.

It's an option on this dialog:
https://winscp.net/eng/docs/ui_synchronize

You have probably run synchronization in GUI in the past, enabled the option and ticked Use same options next time. Disable it the same way.

See also:
https://winscp.net/eng/docs/scripting#configuration
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