The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File timestamp stevefox UNIX for Dummies Questions & Answers 4 12-24-2007 10:14 PM
ftp files -- but keep the original timestamp Perderabo Answers to Frequently Asked Questions 0 07-23-2006 08:43 AM
insert text into the middle of a original file mopimp Shell Programming and Scripting 1 03-26-2006 07:11 AM
Rename a file if I don't know its exact original name? propel Shell Programming and Scripting 9 03-07-2006 03:54 AM
timestamp of file krisdhar UNIX for Dummies Questions & Answers 4 10-28-2003 07:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-15-2006
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
ftp - get file and keep original timestamp?

Can you ftp (get) a file from another server and keep the timestamp on the file that is on the other server?

ie.
server1
server2 - Mar 12 12:30 /filename1

On Mar 15 at 13:00
server1 ftp to server2 and get /filename1

I want the file filename1 to have the date (Mar 12 12:30) on the file timestamp when it is on my server1...

is this possible?
Reply With Quote
Forum Sponsor
  #2  
Old 03-15-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Not with ftp.

You will have to use touch on the file after it has been moved over.
Reply With Quote
  #3  
Old 03-15-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,656
This question seems to come up a lot...
ftp timestamp
transferring files using ftp but mantaining the dates
FTP - Get the file date and time on the remote server

The first two threads mention creating an archive, tranferring the archive, and extracting the files. The third thread discussed the problem with old files not having a complete timestamp visible to ftp; and it has a perl script that ignores the problem.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0