resumesupport does not work

Advertisement

MPrimeur
Joined:
Posts:
3
Location:
Germany

resumesupport does not work

Hi,

I use this script:
option batch continue
option reconnecttime 5
option confirm off
option transfer binary
open ftp://ftp-kassen:xxx@yyy.de -timeout=120 -passive=on
lcd %1%
cd /Payback/
#-- MW 04.09.24 -resumesupport=on integriert. Somit werden die Dateien zuerst mit .filepart hochgeladen und werden nach erfolgreichen Upload in
#--                         den Original Dateinamen umbenannt. Somit wird ein Herunterladen der Datei, während die Datei noch hochgeladen wird, verhindert
put  -resumesupport=on *.json
close
exit
All *.json files are immediately uploaded to the server as *.json and not as *.filepart. What's wrong?

Here are the log:
. 2024-09-05 11:01:15.431 --------------------------------------------------------------------------
. 2024-09-05 11:01:15.433 WinSCP Version 6.3.4 (Build 14955 2024-06-17) (OS 10.0.19045 – Windows 10 Enterprise)
. 2024-09-05 11:01:15.433 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2024-09-05 11:01:15.433 Log level: Reduced, Rotating after: 1000K, Keeping at most 5 logs
. 2024-09-05 11:01:15.433 Local account: PR-DOM\martin
. 2024-09-05 11:01:15.434 Working directory: C:\IT_Cash\payback
. 2024-09-05 11:01:15.434 Process ID: 12736
. 2024-09-05 11:01:15.475 Ancestor processes: cmd, explorer, ...
. 2024-09-05 11:01:15.477 Command-line: winscp.exe  /script=pbputWV.scp /timeout=20 /logsize=5*1000K /log=LOG /loglevel=-1 /parameter N:\IT_Drink\Payback\test
. 2024-09-05 11:01:15.478 Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 31.03.2024, DST End: 27.10.2024
. 2024-09-05 11:01:15.479 Login time: Donnerstag, 5. September 2024 11:01:15
. 2024-09-05 11:01:15.479 --------------------------------------------------------------------------
. 2024-09-05 11:01:15.479 Script: Retrospectively logging previous script records:
> 2024-09-05 11:01:15.479 Script: option batch continue
< 2024-09-05 11:01:15.479 Script: batch           continue  
> 2024-09-05 11:01:15.479 Script: option reconnecttime 5
< 2024-09-05 11:01:15.479 Script: reconnecttime   5         
> 2024-09-05 11:01:15.479 Script: option confirm off
< 2024-09-05 11:01:15.479 Script: confirm         off       
> 2024-09-05 11:01:15.479 Script: option transfer binary
< 2024-09-05 11:01:15.479 Script: transfer        binary    
> 2024-09-05 11:01:15.479 Script: open ftp://ftp-kassen:xxx@yyy.de -timeout=120 -passive=on
. 2024-09-05 11:01:15.479 --------------------------------------------------------------------------
. 2024-09-05 11:01:15.479 Session name: ftp-kassen@yyy.de (Ad-Hoc site)
. 2024-09-05 11:01:15.480 Host name: transfer.yyy.de (Port: 21)
. 2024-09-05 11:01:15.480 User name: ftp-kassen (Password: Yes, Key file: No, Passphrase: No)
. 2024-09-05 11:01:15.480 Transfer Protocol: FTP
. 2024-09-05 11:01:15.480 Ping type: Dummy, Ping interval: 30 sec; Timeout: 120 sec
. 2024-09-05 11:01:15.480 Disable Nagle: No
. 2024-09-05 11:01:15.480 Proxy: None
. 2024-09-05 11:01:15.480 Send buffer: 262144
. 2024-09-05 11:01:15.480 UTF: Auto
. 2024-09-05 11:01:15.480 FTPS: None [Client certificate: No]
. 2024-09-05 11:01:15.480 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2024-09-05 11:01:15.481 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2024-09-05 11:01:15.481 Cache directory changes: Yes, Permanent: Yes
. 2024-09-05 11:01:15.481 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2024-09-05 11:01:15.481 Timezone offset: 0h 0m
. 2024-09-05 11:01:15.481 --------------------------------------------------------------------------
< 2024-09-05 11:01:15.509 Script: Connecting to yyy.de ...
. 2024-09-05 11:01:15.509 Connecting to yyy.de ...
< 2024-09-05 11:01:15.775 220 ProFTPD Server (ProFTPD) [000.000.000.000]
> 2024-09-05 11:01:15.775 USER ftp-kassen
< 2024-09-05 11:01:15.814 331 Password required for ftp-kassen
> 2024-09-05 11:01:15.815 PASS *****************
< 2024-09-05 11:01:15.901 230 User ftp-kassen logged in
> 2024-09-05 11:01:15.901 SYST
< 2024-09-05 11:01:15.941 215 UNIX Type: L8
> 2024-09-05 11:01:15.941 FEAT
< 2024-09-05 11:01:15.981 211-Features:
< 2024-09-05 11:01:15.982  AUTH TLS
< 2024-09-05 11:01:15.982  CCC
< 2024-09-05 11:01:15.982  CLNT
< 2024-09-05 11:01:15.982  CSID
< 2024-09-05 11:01:15.982  EPRT
< 2024-09-05 11:01:15.982  EPSV
< 2024-09-05 11:01:15.982  HOST
< 2024-09-05 11:01:15.983  LANG C.UTF-8*
< 2024-09-05 11:01:15.983  MDTM
< 2024-09-05 11:01:15.983  MFF modify;UNIX.group;UNIX.mode;
< 2024-09-05 11:01:15.983  MFMT
< 2024-09-05 11:01:15.983  MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
< 2024-09-05 11:01:15.983  PBSZ
< 2024-09-05 11:01:15.983  PROT
< 2024-09-05 11:01:15.984  RANG STREAM
< 2024-09-05 11:01:15.984  REST STREAM
< 2024-09-05 11:01:15.984  SIZE
< 2024-09-05 11:01:15.984  SSCN
< 2024-09-05 11:01:15.984  TVFS
< 2024-09-05 11:01:15.984  UTF8
< 2024-09-05 11:01:15.984 211 End
> 2024-09-05 11:01:15.984 CLNT WinSCP-release-6.3.4
< 2024-09-05 11:01:16.022 200 OK
> 2024-09-05 11:01:16.022 OPTS UTF8 ON
< 2024-09-05 11:01:16.061 200 UTF8 set to on
< 2024-09-05 11:01:16.061 Script: Connected
. 2024-09-05 11:01:16.061 Connected
. 2024-09-05 11:01:16.062 --------------------------------------------------------------------------
. 2024-09-05 11:01:16.062 Using FTP protocol.
. 2024-09-05 11:01:16.063 Doing startup conversation with host.
< 2024-09-05 11:01:16.063 Script: Starting the session...
. 2024-09-05 11:01:16.102 Server: ProFTPD 1.3.8b
. 2024-09-05 11:01:16.141 Getting current directory name.
. 2024-09-05 11:01:16.141 Startup conversation with host finished.
< 2024-09-05 11:01:16.141 Script: Session started.
< 2024-09-05 11:01:16.141 Script: Active session: [1] ftp-kassen@transfer.weydringer-strohte.de
> 2024-09-05 11:01:16.142 Script: lcd N:\IT_Drink\Payback\test
< 2024-09-05 11:01:16.144 Script: N:\IT_Drink\Payback\test
> 2024-09-05 11:01:16.145 Script: cd /Payback/
. 2024-09-05 11:01:16.145 Changing directory to "/Payback/".
. 2024-09-05 11:01:16.184 Getting current directory name.
< 2024-09-05 11:01:16.223 Script: /Payback
> 2024-09-05 11:01:16.223 Script: put  -resumesupport=on *.json
. 2024-09-05 11:01:16.229 Copying 1 files/directories to remote directory "/Payback" - total size: 83.366.098
. 2024-09-05 11:01:16.358 File: 'Test.json' [2024-04-13T12:16:51.187Z] [83366098]
. 2024-09-05 11:01:16.669 Copying "Test.json" to remote directory started.
. 2024-09-05 11:01:16.670 Starting upload of N:\IT_Drink\Payback\test\Test.json
. 2024-09-05 11:02:20.801 Upload successful
. 2024-09-05 11:02:20.801 Transfer done: 'Test.json' => '/Payback/Test.json' [83366098]
. 2024-09-05 11:02:20.801 Copying finished: Transferred: 83.366.098, Elapsed: 0:01:04, CPS: 1.291.056/s
> 2024-09-05 11:02:20.802 Script: close
. 2024-09-05 11:02:20.815 Disconnected from server

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum