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

MisterDaniel

Synchronizing script - no errors but no files transferred

Hello, I've done my best to make a script that will load a saved session and synchronize two folders. It appears to work -- identifying files that are new and then saying "Synchronizing..." -- but then no files are actually transferred. I've attached an excerpt from the log file I had it create. I would appreciate any help with this. I am running the most recent version of WinSCP. Thanks in advance!

script.bat
@echo off

WinSCP.exe /console /script=script.txt


script.txt
option batch abort 

option confirm off
open test
option transfer automatic
synchronize both W:\test "Outbound - Test"
close
exit


log.txt
....

. 2013-03-25 10:36:35.492 Using SFTP protocol.
. 2013-03-25 10:36:35.492 Doing startup conversation with host.
> 2013-03-25 10:36:35.492 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2013-03-25 10:36:35.507 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2013-03-25 10:36:35.507 SFTP version 3 negotiated.
. 2013-03-25 10:36:35.507 We believe the server has signed timestamps bug
. 2013-03-25 10:36:35.507 We will use UTF-8 strings for status messages only
. 2013-03-25 10:36:35.507 Changing directory to "/".
. 2013-03-25 10:36:35.507 Getting real path for '/'
> 2013-03-25 10:36:35.507 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2013-03-25 10:36:35.534 Type: SSH_FXP_NAME, Size: 43, Number: 16
. 2013-03-25 10:36:35.534 Real path is '/'
. 2013-03-25 10:36:35.534 Trying to open directory "/".
> 2013-03-25 10:36:35.534 Type: SSH_FXP_LSTAT, Size: 10, Number: 263
< 2013-03-25 10:36:35.561 Type: SSH_FXP_ATTRS, Size: 29, Number: 263
. 2013-03-25 10:36:35.561 Getting current directory name.
. 2013-03-25 10:36:35.561 Startup conversation with host finished.
< 2013-03-25 10:36:35.561 Script: Active session: [1] test
> 2013-03-25 10:36:35.562 Script: option transfer automatic
< 2013-03-25 10:36:35.562 Script: transfer        automatic
> 2013-03-25 10:36:35.562 Script: synchronize both W:\test "Outbound - Test"
< 2013-03-25 10:36:35.562 Script: Comparing...
. 2013-03-25 10:36:35.562 Collecting synchronization list for local directory 'W:\test' and remote directory 'Outbound - Test', mode = 2, params = 6
. 2013-03-25 10:36:35.565 Local file 'W:\test\.' [2013-03-25T16:55:57.125Z] [0] excluded from synchronization
. 2013-03-25 10:36:35.565 Local file 'W:\test\..' [2013-03-25T16:55:57.125Z] [0] excluded from synchronization
. 2013-03-25 10:36:35.565 Local file 'W:\test' [2013-03-25T16:56:01.625Z] [40] included to synchronization
. 2013-03-25 10:36:35.565 Listing directory "/Outbound - Test".
> 2013-03-25 10:36:35.565 Type: SSH_FXP_OPENDIR, Size: 31, Number: 523
< 2013-03-25 10:36:35.589 Type: SSH_FXP_HANDLE, Size: 10, Number: 523
> 2013-03-25 10:36:35.589 Type: SSH_FXP_READDIR, Size: 10, Number: 780
< 2013-03-25 10:36:35.605 Type: SSH_FXP_NAME, Size: 902, Number: 780
> 2013-03-25 10:36:35.605 Type: SSH_FXP_READDIR, Size: 10, Number: 1036
< 2013-03-25 10:36:35.621 Type: SSH_FXP_STATUS, Size: 17, Number: 1036
< 2013-03-25 10:36:35.621 Status code: 1
> 2013-03-25 10:36:35.621 Type: SSH_FXP_CLOSE, Size: 10, Number: 1284
. 2013-03-25 10:36:35.622 Remote file 'Outbound - Test/file1.zip' [2013-03-25T04:07:00.000Z] [40960] is new
. 2013-03-25 10:36:35.623 Remote file 'Outbound - Test/file2.zip' [2013-03-23T13:56:00.000Z] [55632525] is new
. 2013-03-25 10:36:35.623 Remote file 'Outbound - Test/file3.zip' [2013-03-24T13:55:00.000Z] [18350882] is new
. 2013-03-25 10:36:35.624 Remote file 'Outbound - Test/file4.zip' [2013-03-25T13:55:00.000Z] [12233241] is new
. 2013-03-25 10:36:35.624 Remote file 'Outbound - Test/file5.zip' [2013-03-23T13:56:00.000Z] [8399111] is new
. 2013-03-25 10:36:35.624 Local file 'W:\test\dsfds.txt' [2013-03-25T16:56:01.625Z] [40] is new
< 2013-03-25 10:36:35.624 Script: Synchronizing...
. 2013-03-25 10:36:35.624 Synchronizing local directory 'W:\test\' with remote directory 'Outbound - Test/', params = 6
> 2013-03-25 10:36:35.624 Script: close
. 2013-03-25 10:36:35.624 Closing connection.
. 2013-03-25 10:36:35.624 Sending special code: 12
. 2013-03-25 10:36:35.625 Sent EOF message