Showing results for 
Search instead for 
Did you mean: 


rick agostino
Occasional Advisor


Is it possible when transferring a file (VIA FTP) to retain the original files date/time stamp when transferred to the target server?.
Steven Schweda
Honored Contributor


Not with a typical FTP client program. The
old standard FTP does not handle such meta
data. I think that the RFC has been extended
to deal with this, but finding servers and
clients which can use the protocol extensions
may be difficult.

If you're fetching files, wget can try to
request and interpret a remote directory
listing, extract the date-time info, and set
the date-time on the fetched file(s).
Results may vary, because of the lameness
inherent in a UNIX "ls -l" report.

I don't use it, but I suspect that cURL can
do it, too.