LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-10-2007, 08:59 AM   #1
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Rep: Reputation: 17
Keep original date in ftp transfers


Files I am sending via Network Services-> Ftp Servers-> MyMac do not keep their created dates. Creation a modification date are set to 'now'.
How may this be fixed?
Thank you
 
Old 11-11-2007, 05:20 AM   #2
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265
Blog Entries: 2

Rep: Reputation: 34
I also had problems with ftp transfers changing the date. My solution was to use rsync.

-JJ
 
Old 11-11-2007, 06:55 AM   #3
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Yes, rsync does the job but it does not fit my needs. I need GUI. In KDE I make a file selection (jpgs) looking their thumbnails and then drag-drop to the ftp location.
At this time I do this in WinXP inside VMWare. It is a weird way to do this.
Thank you
 
Old 11-11-2007, 07:40 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Copy files over inside an archive or add an EXIF tag (should be easy to script and extract) or SCP the files over and ssh in to touch 'em?
 
Old 11-11-2007, 10:34 AM   #5
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
You know that I oftently (several times a day) select two or three files (Konqueror or Dolphin) and drop them on my ftp link. I am only asked to move or copy them. And that's all. I want to keep it simple, keep original dates in ftp. Thanks!
 
Old 11-11-2007, 04:38 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by marciano View Post
I want to keep it simple, keep original dates in ftp.
Yes, you want to keep it simple but on the other side a file is *created* when you transfer it. Creating a file sets the MAC time of the file. FTP just doesn't work like *you* want it to.
 
Old 11-11-2007, 05:18 PM   #7
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Probably is my ignorance about these issues.
The fact is that creation date is kept when I download files from ftp servers from my MAC. Is it not the same when you send than when you receive files?
Thank you
 
Old 11-12-2007, 03:12 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
As already pointed out by unSpawn, the FTP protocol cannot preserve timestamp. The timestamp of the downloaded files is preserved because the client does something by retrieving the timestamp of the source file and setting the timestamp of the local copy accordingly. For example you can query the modification time of a remote file by the ftp command modtime and then touch your local copy. But there is no way, or at least no standard way, to preserve the mod time of an uploaded file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting firefox to use non-passive ftp transfers arc2v Linux - Software 2 05-11-2006 03:29 PM
Linux/UNIX differences with vi and ftp ascii transfers KenMadsen Linux - Newbie 2 06-20-2005 09:51 AM
Resuming FTP transfers on command-line Mankind75 Linux - Software 7 04-23-2004 10:08 AM
Multiple File Transfers FTP Client 4 Linx aaronluke Linux - Software 2 10-30-2002 09:19 PM
slow ftp transfers using in.ftpd mrdiet Linux - Networking 2 06-10-2001 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration