Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

FTP

rick agostino
Occasional Advisor

FTP

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

Re: FTP

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.

http://www.gnu.org/software/wget/wget.html
http://curl.haxx.se/