Topic "Problem with synchronize and partially transmitted files"

Author Message
Paulo

Guest


Hi:
To start, excellent program!
I'm trying to sync my Linux home server with my Windows XP work machine. I create this script:

C:\PROGRA~1\WinSCP3>more homebackup.txt
option batch on
option confirm off
open rsync@xxx.xxx.org
cd /data
synchronize local c:\homebackup /data
close
exit

It's been running successfully, until one session failed with an partially transferred file. Now I get this error:
Local 'c:\homebackup\profiles\lea\Desktop\CSA\2-8-2005_files' <= Remote '/data/profiles/lea/Desktop/CSA/2-8-2005_files'
zlsSetup_55_062_011.exe | 0 kB | 0.0 kB/s | binary | 0%
Target directory contains partially transfered file 'zlsSetup_55_062_011.exe'.
o you want to resume file transfer? Note: Answering 'No' would delete partially
transfered file and restart transfer.
(Y)es, (N)o, (A)bort: Abort
Session 'rsync@chilux.ods.org' closed.
No session.

I understand what is going on, but this is an unnatended process, so I can't be there to answer. I checked the documentation (gasp!!) and it seems the "option batch on" should answer a "no" to that question. So is this a bugor I didn't understand the documentation?
Version is 3.7.4 (build 271).

thanks
Paulo
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This is known drawback. I'll solve it somehow in the next version. As temporary workaround you may disable resuming at all or disable resume confirmation in the GUI. Whatever you prefer. It will affect the scripting too.
_________________
Martin Prikryl
Paulo

Guest


Martin:
Thanks for the fast reply. That works for me!
Paulo
LP

Guest


Was this problem ever resolved? We occasionally run into the same problem.

Paulo wrote:
Hi:
To start, excellent program!
I'm trying to sync my Linux home server with my Windows XP work machine. I create this script:

C:\PROGRA~1\WinSCP3>more homebackup.txt
option batch on
option confirm off
open rsync@xxx.xxx.org
cd /data
synchronize local c:\homebackup /data
close
exit

It's been running successfully, until one session failed with an partially transferred file. Now I get this error:
Local 'c:\homebackup\profiles\lea\Desktop\CSA\2-8-2005_files' <= Remote '/data/profiles/lea/Desktop/CSA/2-8-2005_files'
zlsSetup_55_062_011.exe | 0 kB | 0.0 kB/s | binary | 0%
Target directory contains partially transfered file 'zlsSetup_55_062_011.exe'.
o you want to resume file transfer? Note: Answering 'No' would delete partially
transfered file and restart transfer.
(Y)es, (N)o, (A)bort: Abort
Session 'rsync@chilux.ods.org' closed.
No session.

I understand what is going on, but this is an unnatended process, so I can't be there to answer. I checked the documentation (gasp!!) and it seems the "option batch on" should answer a "no" to that question. So is this a bugor I didn't understand the documentation?
Version is 3.7.4 (build 271).

thanks
Paulo
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
LP wrote:
Was this problem ever resolved? We occasionally run into the same problem.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. 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 can mark the attachment as private.
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