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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mac OS X 10.5: Software Update stops responding during "Configuring installation" iBot OS X Support RSS 0 12-17-2008 11:30 PM
add seconds to: date"|"time"|"HHMMSS anaconga UNIX for Advanced & Expert Users 3 08-27-2008 02:17 PM
converting date format: "May 31 2008" to "2008-05-31" santosham UNIX for Dummies Questions & Answers 8 06-17-2008 10:59 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
How to find out the exact year in "Last modified time" using ls command Dophlinne UNIX for Dummies Questions & Answers 6 04-11-2006 12:07 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-18-2009
timgolding timgolding is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 34
rsync to update "Date Modified"

Is there anyway to get rsync to also modify the date modified details of the files it has updated? It would be useful to easily check that the rysnc has performed as expected..
  #2 (permalink)  
Old 05-18-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 430
option -t

Code:
man rsync
or do you mean it should change the time to the current time? then leave this option
  #3 (permalink)  
Old 05-18-2009
timgolding timgolding is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 34
Sorry you just confused me. I want it to update the times so i know what time the files were modified (Which i guess is current time). If rsync is modifying files why would'nt it tell me so and update the times. Is it because the checksum wouldn't match the next time i tried to do an update?
  #4 (permalink)  
Old 05-18-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,770
You need to use the -t option, among some others (probably) -t makes the filetimes of the newly created remote files match the filetimes of the old local files.

checksum is a hash against file content not filetimes.
  #5 (permalink)  
Old 05-18-2009
timgolding timgolding is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 34
Thanks
Closed Thread

Bookmarks

Tags
rsync, rsync modified date

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0