The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Date/Time Stamp JimmyFlip UNIX for Dummies Questions & Answers 0 11-14-2006 11:49 PM
Inserting Date&Time Stamp In Existing Log File shephardfamily UNIX for Dummies Questions & Answers 3 02-24-2006 04:01 AM
Insert Time and Date Stamp aajmani Shell Programming and Scripting 1 10-13-2005 04:15 PM
Date Time Stamp jarich Shell Programming and Scripting 2 07-28-2005 10:28 PM
File date and time stamp Xenon UNIX for Dummies Questions & Answers 1 10-09-2001 04:58 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 04-11-2008
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
rsync - date/time stamp

Hi,

We are using RSYNC for syncing remote directories and working great. Our requirement is to have the destination files with date/time stamp of when they're copied on to the destination server, NOT the date/time stamps of source files/directories.

As RSYNC, by default, preserving the same date/time stamps as of source files, how can i achieve this?

Pl advise

Thanks
Prvn
  #2 (permalink)  
Old 04-11-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,798
See if you have the -t or --times option set - this preserves times from the source file to the destination. Unset that option.
  #3 (permalink)  
Old 04-11-2008
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
Thanks Jim,

I am running rsync -avuz <SRC> <DEST> (only 4 options - "-t" option not set).

I guess its default behavior of rsync. How can i force not to preserve date/time stamp?


Thanks
Prvn
  #4 (permalink)  
Old 04-11-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,245
If you look at what definition of the -a flag, I believe that it implicitly sets the timstamp preservation. Take the longer equivalent to -a from the man page for rsync and remove the -t from the list and use that in place of -a.
  #5 (permalink)  
Old 04-11-2008
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
Hi Reborg,

Thank you very much. It worked great.

I replaced "-a" with "-rlpgoD" (without -t ) and found working perfect.


Thanks
Prvn
Closed Thread

Bookmarks

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 02:25 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