synchronization dosn't work
Hello,
I want to synchronize with WinSCP 4.3.2 from a SFTP server to my local storage.
The SFTP server is a linux Darwin (Kernel Version 10.6.0) and my PC have Windows Server 2008 R2 Standard
The problem is, that the batch mode not working properly.
No files are synchronized even when local directory is completely completly EMPTY
WinSCP GUI works correctly.
bat:
WinScp script:
LOG:
Seweryn Kazior
I want to synchronize with WinSCP 4.3.2 from a SFTP server to my local storage.
The SFTP server is a linux Darwin (Kernel Version 10.6.0) and my PC have Windows Server 2008 R2 Standard
The problem is, that the batch mode not working properly.
No files are synchronized even when local directory is completely completly EMPTY
WinSCP GUI works correctly.
bat:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /script="D:\backup\config_WinSCP - do not remove!\script_Projects.txt" /log="D:\backup\config_WinSCP - do not remove!\Projects_log.txt"
WinScp script:
option batch on option confirm off open Files_backup option transfer binary cd /Volumes synchronize local "D:\backup\synchronized_folders\Files_(192.168.1.4)\Pioneer_Projects" Pioneer_Projects close exit
LOG:
. 2011-02-26 04:52:01.338 -------------------------------------------------------------------------- . 2011-02-26 04:52:01.338 WinSCP Version 4.3.2 (Build 1201) (OS 6.1.7600) . 2011-02-26 04:52:01.338 Login time: Saturday, February 26, 2011 4:52:01 AM . 2011-02-26 04:52:01.338 -------------------------------------------------------------------------- . 2011-02-26 04:52:01.338 Session name: Files_backup . 2011-02-26 04:52:01.338 Host name: 192.168.1.6 (Port: 22) . 2011-02-26 04:52:01.338 User name: root (Password: Yes, Key file: No) . 2011-02-26 04:52:01.338 Tunnel: No . 2011-02-26 04:52:01.338 Transfer Protocol: SFTP (SCP) . 2011-02-26 04:52:01.338 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec . 2011-02-26 04:52:01.338 Proxy: none . 2011-02-26 04:52:01.338 SSH protocol version: 2; Compression: No . 2011-02-26 04:52:01.338 Bypass authentication: No . 2011-02-26 04:52:01.338 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2011-02-26 04:52:01.338 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No . 2011-02-26 04:52:01.338 SSH Bugs: -,-,-,-,-,-,-,-,- . 2011-02-26 04:52:01.338 SFTP Bugs: -,- . 2011-02-26 04:52:01.338 Return code variable: Autodetect; Lookup user groups: Yes . 2011-02-26 04:52:01.338 Shell: default . 2011-02-26 04:52:01.338 EOL: 0, UTF: 2 . 2011-02-26 04:52:01.338 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes . 2011-02-26 04:52:01.338 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No . 2011-02-26 04:52:01.338 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2011-02-26 04:52:01.338 Cache directory changes: Yes, Permanent: Yes . 2011-02-26 04:52:01.338 DST mode: 1 . 2011-02-26 04:52:01.338 -------------------------------------------------------------------------- . 2011-02-26 04:52:01.338 Looking up host "192.168.1.6" . 2011-02-26 04:52:01.338 Connecting to 192.168.1.6 port 22 . 2011-02-26 04:52:01.447 Server version: SSH-2.0-OpenSSH_5.2 . 2011-02-26 04:52:01.447 We believe remote version has SSH-2 ignore bug . 2011-02-26 04:52:01.447 Using SSH protocol version 2 . 2011-02-26 04:52:01.447 We claim version: SSH-2.0-WinSCP_release_4.3.2 . 2011-02-26 04:52:01.494 Doing Diffie-Hellman group exchange . 2011-02-26 04:52:01.510 Doing Diffie-Hellman key exchange with hash SHA-1 . 2011-02-26 04:52:01.993 Host key fingerprint is: . 2011-02-26 04:52:01.993 ssh-rsa 2048 05:f1:94:57:07:de:ef:3b:7d:cf:65:09:61:52:97:28 . 2011-02-26 04:52:01.993 Initialised AES-256 SDCTR client->server encryption . 2011-02-26 04:52:01.993 Initialised HMAC-SHA1 client->server MAC algorithm . 2011-02-26 04:52:01.993 Initialised AES-256 SDCTR server->client encryption . 2011-02-26 04:52:01.993 Initialised HMAC-SHA1 server->client MAC algorithm ! 2011-02-26 04:52:01.993 Using username "root". . 2011-02-26 04:52:02.056 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password:) . 2011-02-26 04:52:02.056 Using stored password. . 2011-02-26 04:52:02.227 Prompt (5, SSH server authentication, , <no prompt>) . 2011-02-26 04:52:02.227 Ignoring empty SSH server authentication request . 2011-02-26 04:52:02.227 Access granted . 2011-02-26 04:52:02.305 Opened channel for session . 2011-02-26 04:52:02.305 Started a shell/command . 2011-02-26 04:52:02.305 -------------------------------------------------------------------------- . 2011-02-26 04:52:02.305 Using SFTP protocol. . 2011-02-26 04:52:02.321 Doing startup conversation with host. > 2011-02-26 04:52:02.321 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2011-02-26 04:52:02.399 Type: SSH_FXP_VERSION, Size: 95, Number: -1 . 2011-02-26 04:52:02.399 SFTP version 3 negotiated. . 2011-02-26 04:52:02.399 Unknown server extension posix-rename@openssh.com="1" . 2011-02-26 04:52:02.399 Unknown server extension statvfs@openssh.com="2" . 2011-02-26 04:52:02.399 Unknown server extension fstatvfs@openssh.com="2" . 2011-02-26 04:52:02.399 We believe the server has signed timestamps bug . 2011-02-26 04:52:02.399 We will use UTF-8 strings for status messages only . 2011-02-26 04:52:02.399 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes . 2011-02-26 04:52:02.399 Getting current directory name. . 2011-02-26 04:52:02.399 Getting real path for '.' > 2011-02-26 04:52:02.399 Type: SSH_FXP_REALPATH, Size: 10, Number: 16 < 2011-02-26 04:52:02.399 Type: SSH_FXP_NAME, Size: 55, Number: 16 . 2011-02-26 04:52:02.399 Real path is '/private/var/root' . 2011-02-26 04:52:02.399 Startup conversation with host finished. < 2011-02-26 04:52:02.399 Script: Active session: [1] Files_backup > 2011-02-26 04:52:02.399 Script: option transfer binary < 2011-02-26 04:52:02.399 Script: transfer binary > 2011-02-26 04:52:02.399 Script: cd /Volumes/ . 2011-02-26 04:52:02.399 Cached directory change via "/Volumes/" to "/Volumes". . 2011-02-26 04:52:02.399 Getting current directory name. < 2011-02-26 04:52:02.399 Script: /Volumes > 2011-02-26 04:52:02.399 Script: synchronize local "D:\backup\synchronized_folders\Files_(192.168.1.4)\Pioneer_Projects" Pioneer_Projects < 2011-02-26 04:52:02.399 Script: Comparing... . 2011-02-26 04:52:02.399 Collecting synchronization list for local directory 'D:\backup\synchronized_folders\Files_(192.168.1.4)\Pioneer_Projects' and remote directory 'Pioneer_Projects', mode = 1, params = 2 < 2011-02-26 04:52:02.399 Script: Nothing to synchronize. > 2011-02-26 04:52:02.399 Script: close . 2011-02-26 04:52:02.399 Closing connection. . 2011-02-26 04:52:02.399 Sending special code: 12 . 2011-02-26 04:52:02.399 Sent EOF message
Seweryn Kazior