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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Listing Unique directories. deepakwins UNIX for Dummies Questions & Answers 2 01-23-2008 02:14 PM
Copy selected Directories sigurarm UNIX for Dummies Questions & Answers 2 12-21-2007 08:57 AM
copy multiple files in different directories ken2834 UNIX for Dummies Questions & Answers 3 03-25-2007 10:35 AM
How do copy certain files and directories from one hard drive to another? shorty UNIX for Dummies Questions & Answers 4 02-11-2006 04:26 PM
Find directories not containing foo, and copy foo to them dkaplowitz Shell Programming and Scripting 6 06-29-2005 05:50 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2008
Registered User
 

Join Date: Mar 2008
Posts: 11
Copy unique files between two directories in Solaris

Hi,

My requirement is to have a shell script:

SOURCE_DIR=/usr/logs/restore/ --> Contains multiple subdirectories
TARGET_DIR=/usr/data/logs --> Existing folders which contain similar subdirectories

I want to copy only newer or uniquie files which are present in $SOURCE_DIR and its subdirectories to $TARGET_DIR exacly under the respective folders. It should not overwrite the existing files at $TARGET_DIR and its subdirs.

Any help will be highly appreciated.

regards

Sujoy
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-20-2008
Registered User
 

Join Date: Oct 2007
Location: USA
Posts: 500
Look at the manpage for rsync.
Reply With Quote
  #3 (permalink)  
Old 03-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 11
Hi,

I dont have access to execute rsync since Im sudo user.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0