FTP File Transfer Timestamps

When I ftp:get some files from another UNIX server their modification date changes on the local machine to the time at which they were ftp'd.  I want them to keep their original timestamp.  Is this possible?
fionabionAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
The ncftp client (http://www.ncftp.com/) will preserve timestamps. And as a bonus you get command line editing, a bookmarks capability, and some nifty tools for doing scripted FTP sessions.
0
 
yuzhCommented:
login to the remote machine,use tar to create a tar ball for the files to be transfered, then ftp to get the file, tar it off on your local machine.

====
yuzh
0
 
beskyCommented:
No, cause you are actually creating a new file on your machine so do it as yuzh says.
and use -p to tar for preserving file data.

rgds
0
 
fionabionAuthor Commented:
Thanks for this.  Although if you ftp using cute-ftp from a Unix server to your local PC - the file maintains its original timestamp.  
0
All Courses

From novice to tech pro — start learning today.