![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| timestamp in the end of a folder | psychobeauty | UNIX for Dummies Questions & Answers | 7 | 04-13-2008 09:26 AM |
| timestamp | Minguccio75 | SUN Solaris | 4 | 02-21-2007 01:06 AM |
| add timestamp to filename | walterja | Shell Programming and Scripting | 3 | 11-08-2005 09:42 PM |
| timestamp | rocker40 | UNIX for Dummies Questions & Answers | 3 | 10-09-2003 06:09 AM |
| 32-bit timestamp | darkspace | High Level Programming | 0 | 08-29-2002 08:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ftp timestamp
I have written a basic script to ftp files from a local machine to a remote one and put it into a crontab to automate the process as the directory has more files added to it. I also have a cron which periodically removes files from the local directory to stop the filesystem from becoming full. However the after I ftp the file the time stamp changes from the original file.
What I need to know is (a) Is there any way I can keep the original timestamp (b) Once the file is ftp'ed accross can I selectively stop it ftping files which have already been transfered. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
(a) I don't think so.. When the file is ftp'd to the remote system, it's "creation" time becomes whatever the time is on that system.
(b) Not sure exactly what you mean.. you could delete the file on the local system as soon as it's ftp'd to the remote one. |
|
#3
|
|||
|
|||
|
never tried this but you can tar the file on the host before it is FTPed over. this way, I think only the tar file gets its timestamp updated, not the actual file that is IN the tar file itself.
not sure, try it tho and see if it works |
|
#4
|
||||
|
||||
|
I decided to try it so I zipped a couple files and ftp'ed them to another server .. it worked, the creation times were preserved for the files inside the zip file ..
|
|
#5
|
|||
|
|||
|
say what???? so am a genius?? noooooooo, stop playing.
seriously, am happy for you. one day I hope I become the first human UNIX DOCTOR. my logo would be "Is your unix system sick?, if so, COME TO ME, the doctor" lol |
|||
| Google The UNIX and Linux Forums |