Solved

FTP File Transfer Timestamps

Posted on 2002-03-20
4
398 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 425
Skill Development 15 176
Python Assistance 7 81
How to check the PVU´s on AIX TSM servers? 3 95
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

777 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