Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 10, 2012 8:13 am 
Offline
Newbie

Joined: Fri Aug 10, 2012 7:58 am
Posts: 3
Good morning,

Ever since I upgraded my Debian Linode to Squeeze, I'm having an unusual issue. I typically do file uploads to my Linode using SFTP, and in the past, doing such an upload would keep the Last Modified Date on the file the same as it was on my local system. However, since the upgrade, I note now that the Last Modified Date reflects the time and date of upload, not of last modification.

Does anyone know how to correct this behavior? I actually use the Last Modified Date in my website, and need it to reflect the modification rather than upload date. I've ruled out my local client by trying other clients and experiencing the same behavior, leading to the conclusion that the server is at fault.

Thank you.

- Trip


Top
   
PostPosted: Fri Aug 10, 2012 6:15 pm 
Offline
Senior Member
User avatar

Joined: Sun Aug 10, 2008 11:26 am
Posts: 104
Location: ~$
sftp (and scp) has a -p flag: "Preserves modification times, access times, and modes from the original files transferred"

_________________
Hartford makes bread and jeans, and paper art.


Top
   
PostPosted: Fri Aug 10, 2012 6:43 pm 
Offline
Newbie

Joined: Fri Aug 10, 2012 7:58 am
Posts: 3
I spotted that, but I don't typically use the command line utility, as it would be much too time consuming versus drag and drop. I use Konqueror, and also tested with FileZilla. I've never had this problem before.

Thank you.

- Trip


Top
   
PostPosted: Fri Aug 10, 2012 11:11 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Try running scp with -vvv on the command line (with and without -p) and see if you get any useful debug messages.


Top
   
PostPosted: Sat Aug 11, 2012 8:24 am 
Offline
Newbie

Joined: Fri Aug 10, 2012 7:58 am
Posts: 3
I was able to get some information out. Essentially, with -p, it is clearly and distinctly sending along the timestamp, while without it, it does not. I'm betting, now, that it actually is a client issue, or at least, an issue that should be fixable on the client side. Off to learn more about KIO slaves.

Thank you.

- Trip


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group