Solved

FTP File Transfer Timestamps

Posted on 2002-03-20
4
396 Views
Last Modified: 2013-12-27
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
Comment
Question by:fionabion
4 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 6884330
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
 
LVL 4

Expert Comment

by:besky
ID: 6885371
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
 

Author Comment

by:fionabion
ID: 6885936
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
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6887657
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now