Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

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?
0
fionabion
Asked:
fionabion
1 Solution
 
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
 
jlevieCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now