Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

si24

Preserve directory timestamps to local not working

I'm attempting to backup remote to local using ftp. I've turn on preserve timestamp including directories for all transfer settings but can't seem to get it to work. Downloading to a local NTFS formatted drive. I've tested various methods, using download and synchronize commands but nothing seems to preservice the folder dates. File dates are being preserved. Any suggestions? Below is the log.
. 2021-02-19 16:55:05.683 --------------------------------------------------------------------------
. 2021-02-19 16:55:05.683 WinSCP Version 5.17.10 (Build 11087) (OS 10.0.17763 - Windows Server 2019 Datacenter)
. 2021-02-19 16:55:05.683 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2021-02-19 16:55:05.683 Log level: Debug 2
. 2021-02-19 16:55:05.683 Local account: DOM1\admin
. 2021-02-19 16:55:05.683 Working directory: C:\Program Files (x86)\WinSCP
. 2021-02-19 16:55:05.683 Process ID: 3328
. 2021-02-19 16:55:05.683 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2021-02-19 16:55:05.683 Time zone: Current: GMT+0 (Coordinated Universal Time), No DST
. 2021-02-19 16:55:05.683 Login time: Friday, February 19, 2021 4:55:05 PM
. 2021-02-19 16:55:05.683 --------------------------------------------------------------------------
. 2021-02-19 16:55:05.683 Session name: admin@testftp.dom1.local (Site)
. 2021-02-19 16:55:05.683 Host name: testftp.dom1.local (Port: 21)
. 2021-02-19 16:55:05.683 User name: admin (Password: Yes, Key file: No, Passphrase: No)
. 2021-02-19 16:55:05.683 Transfer Protocol: FTP
. 2021-02-19 16:55:05.683 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2021-02-19 16:55:05.683 Disable Nagle: No
. 2021-02-19 16:55:05.683 Proxy: None
. 2021-02-19 16:55:05.683 Send buffer: 262144
. 2021-02-19 16:55:05.683 UTF: Auto
. 2021-02-19 16:55:05.683 FTPS: None [Client certificate: No]
. 2021-02-19 16:55:05.683 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2021-02-19 16:55:05.683 Local directory: C:\Program Files (x86)\WinSCP\test, Remote directory: /, Update: Yes, Cache: Yes
. 2021-02-19 16:55:05.683 Cache directory changes: Yes, Permanent: Yes
. 2021-02-19 16:55:05.683 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2021-02-19 16:55:05.683 Timezone offset: 0h 0m
. 2021-02-19 16:55:05.683 --------------------------------------------------------------------------
. 2021-02-19 16:55:05.699 Connecting to testftp.dom1.local ...
. 2021-02-19 16:55:05.699 Connected with testftp.dom1.local. Waiting for welcome message...
< 2021-02-19 16:55:05.699 220 Welcome to FTP Server
> 2021-02-19 16:55:05.699 USER admin
< 2021-02-19 16:55:05.699 331 Password required for admin
> 2021-02-19 16:55:05.699 PASS ********
< 2021-02-19 16:55:05.699 230 User successfully logged in.
> 2021-02-19 16:55:05.699 SYST
< 2021-02-19 16:55:05.699 215 UNIX emulated by FTP Server.
> 2021-02-19 16:55:05.699 FEAT
< 2021-02-19 16:55:05.699 211-Extensions supported
< 2021-02-19 16:55:05.699 SIZE
< 2021-02-19 16:55:05.699 MDTM
< 2021-02-19 16:55:05.699 XCRC
< 2021-02-19 16:55:05.699 211 END
. 2021-02-19 16:55:05.730 Connected
. 2021-02-19 16:55:05.730 Got reply 1 to the command 1
. 2021-02-19 16:55:05.730 --------------------------------------------------------------------------
. 2021-02-19 16:55:05.730 Using FTP protocol.
. 2021-02-19 16:55:05.730 Doing startup conversation with host.
> 2021-02-19 16:55:05.746 PWD
< 2021-02-19 16:55:05.746 257 "/" is current directory.
. 2021-02-19 16:55:05.746 Got reply 1 to the command 16
. 2021-02-19 16:55:05.746 Changing directory to "/".
> 2021-02-19 16:55:05.746 CWD /
< 2021-02-19 16:55:05.746 250 "/" is current directory.
. 2021-02-19 16:55:05.746 Got reply 1 to the command 16
. 2021-02-19 16:55:05.746 Getting current directory name.
> 2021-02-19 16:55:05.746 PWD
< 2021-02-19 16:55:05.746 257 "/" is current directory.
. 2021-02-19 16:55:05.746 Got reply 1 to the command 16
. 2021-02-19 16:55:05.777 Session upkeep
. 2021-02-19 16:55:05.793 Retrieving directory listing...
> 2021-02-19 16:55:05.793 TYPE A
< 2021-02-19 16:55:05.793 200 Type set to ASCII
> 2021-02-19 16:55:05.793 PASV
< 2021-02-19 16:55:05.793 227 Entering Passive Mode (172,31,1,85,4,0)
> 2021-02-19 16:55:05.793 LIST -a
. 2021-02-19 16:55:05.793 Connecting to 172.31.1.85:1024 ...
. 2021-02-19 16:55:05.793 Data connection opened
< 2021-02-19 16:55:05.793 150 Opening ASCII mode data connection for directory list.
. 2021-02-19 16:55:05.793 Data connection closed
. 2021-02-19 16:55:05.793 -rwx------ 1 user group              4 Feb 18 00:49 test1.txt
. 2021-02-19 16:55:05.793 -rwx------ 1 user group              4 Feb 18 00:49 test2.txt
. 2021-02-19 16:55:05.793 -rwx------ 1 user group              4 Feb 18 00:49 test3.txt
. 2021-02-19 16:55:05.793 drwx------ 1 user group              0 Feb 18 11:30 testd1130
< 2021-02-19 16:55:05.808 226 Transfer complete
. 2021-02-19 16:55:05.808 Directory listing successful
. 2021-02-19 16:55:05.808 Got reply 1 to the command 2
. 2021-02-19 16:55:05.808 Detecting timezone difference...
. 2021-02-19 16:55:05.808 Retrieving file information...
> 2021-02-19 16:55:05.808 PWD
< 2021-02-19 16:55:05.808 257 "/" is current directory.
> 2021-02-19 16:55:05.808 CWD /test1.txt
< 2021-02-19 16:55:05.808 550 "/test1.txt": Directory not found.
> 2021-02-19 16:55:05.808 TYPE I
< 2021-02-19 16:55:05.808 200 Type set to BINARY
> 2021-02-19 16:55:05.808 SIZE /test1.txt
< 2021-02-19 16:55:05.808 213 4
> 2021-02-19 16:55:05.808 MDTM /test1.txt
< 2021-02-19 16:55:05.808 213 20210218004936.000
. 2021-02-19 16:55:05.808 Retrieving file information successful
. 2021-02-19 16:55:05.808 Got reply 1 to the command 1024
. 2021-02-19 16:55:05.808 No timezone difference detected using file /test1.txt (Listing: 2021-02-18T00:49:00.000Z, UTC: 2021-02-18T00:49:00.000Z)
. 2021-02-19 16:55:05.808 ..;D;0;1899-12-30T00:00:00.000Z;0;"" [0];"" [0];---------;0
. 2021-02-19 16:55:05.808 test1.txt;-;4;2021-02-18T00:49:00.000Z;1;"user" [0];"group" [0];rwx------;0
. 2021-02-19 16:55:05.808 test2.txt;-;4;2021-02-18T00:49:00.000Z;1;"user" [0];"group" [0];rwx------;0
. 2021-02-19 16:55:05.808 test3.txt;-;4;2021-02-18T00:49:00.000Z;1;"user" [0];"group" [0];rwx------;0
. 2021-02-19 16:55:05.808 testd1130;D;0;2021-02-18T11:30:00.000Z;1;"user" [0];"group" [0];rwx------;0
. 2021-02-19 16:55:05.840 Startup conversation with host finished.
. 2021-02-19 16:55:06.262 Session upkeep
. 2021-02-19 16:55:06.762 Session upkeep
. 2021-02-19 16:55:07.262 Session upkeep
. 2021-02-19 16:55:07.762 Session upkeep
. 2021-02-19 16:55:08.262 Session upkeep
. 2021-02-19 16:55:08.762 Session upkeep
. 2021-02-19 16:55:09.262 Session upkeep
. 2021-02-19 16:55:09.762 Session upkeep
. 2021-02-19 16:55:10.262 Session upkeep
. 2021-02-19 16:55:10.543 Getting size of directory "testd1130"
. 2021-02-19 16:55:10.543 Retrieving directory listing...
> 2021-02-19 16:55:10.543 CWD /testd1130
< 2021-02-19 16:55:10.543 250 "/testd1130" is current directory.
> 2021-02-19 16:55:10.543 PWD
< 2021-02-19 16:55:10.543 257 "/testd1130" is current directory.
> 2021-02-19 16:55:10.543 TYPE A
< 2021-02-19 16:55:10.543 200 Type set to ASCII
> 2021-02-19 16:55:10.543 PASV
< 2021-02-19 16:55:10.558 227 Entering Passive Mode (172,31,1,85,4,0)
> 2021-02-19 16:55:10.558 LIST -a
. 2021-02-19 16:55:10.558 Connecting to 172.31.1.85:1024 ...
. 2021-02-19 16:55:10.558 Data connection opened
< 2021-02-19 16:55:10.558 150 Opening ASCII mode data connection for directory list.
. 2021-02-19 16:55:10.558 Data connection closed
. 2021-02-19 16:55:10.558 <Empty directory listing>
< 2021-02-19 16:55:10.574 226 Transfer complete.
. 2021-02-19 16:55:10.574 Directory listing successful
. 2021-02-19 16:55:10.574 Got reply 1 to the command 2
. 2021-02-19 16:55:10.574 ..;D;0;1899-12-30T00:00:00.000Z;0;"" [0];"" [0];---------;0
. 2021-02-19 16:55:10.574 Remote directory "/testd1130/" is empty
. 2021-02-19 16:55:10.574 Size of 1 remote files/folders calculated as 0
. 2021-02-19 16:55:10.605 Copying 1 files/directories to local directory "C:\Program Files (x86)\WinSCP\test\" - total size: 0
. 2021-02-19 16:55:10.605   PrTime: Yes+Dirs; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2021-02-19 16:55:10.605   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: Yes; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2021-02-19 16:55:10.605   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2021-02-19 16:55:10.605 File: '/testd1130' [2021-02-18T11:30:00.000Z] [0]
. 2021-02-19 16:55:10.605 Retrieving directory listing...
> 2021-02-19 16:55:10.605 TYPE A
< 2021-02-19 16:55:10.605 200 Type set to ASCII
> 2021-02-19 16:55:10.605 PASV
< 2021-02-19 16:55:10.605 227 Entering Passive Mode (172,31,1,85,4,0)
> 2021-02-19 16:55:10.605 LIST -a
. 2021-02-19 16:55:10.605 Connecting to 172.31.1.85:1024 ...
. 2021-02-19 16:55:10.605 Data connection opened
< 2021-02-19 16:55:10.605 150 Opening ASCII mode data connection for directory list.
. 2021-02-19 16:55:10.605 Data connection closed
. 2021-02-19 16:55:10.605 <Empty directory listing>
< 2021-02-19 16:55:10.637 226 Transfer complete.
. 2021-02-19 16:55:10.637 Directory listing successful
. 2021-02-19 16:55:10.637 Got reply 1 to the command 2
. 2021-02-19 16:55:10.637 ..;D;0;1899-12-30T00:00:00.000Z;0;"" [0];"" [0];---------;0
. 2021-02-19 16:55:10.637 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2021-02-19 16:55:10.652 Session upkeep
. 2021-02-19 16:55:10.762 Session upkeep
. 2021-02-19 16:55:11.262 Session upkeep
. 2021-02-19 16:55:11.762 Session upkeep
. 2021-02-19 16:55:12.262 Session upkeep
. 2021-02-19 16:55:12.762 Session upkeep
. 2021-02-19 16:55:13.262 Session upkeep
. 2021-02-19 16:55:13.762 Session upkeep
. 2021-02-19 16:55:14.262 Session upkeep
. 2021-02-19 16:55:14.762 Session upkeep
. 2021-02-19 16:55:14.793 Got reply 1004 to the command 2