The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Trying to Copy Files Changed Recently scotbuff Shell Programming and Scripting 4 01-23-2007 09:04 AM
How to compare two flat files and get changed data jtshashidhar Shell Programming and Scripting 3 01-29-2006 10:26 PM
How to copy N files from one dir to another GMMike UNIX for Dummies Questions & Answers 1 10-13-2005 08:50 AM
how to copy files ? svennie UNIX for Dummies Questions & Answers 9 09-29-2004 05:15 AM
Copy all files 42!? UNIX for Dummies Questions & Answers 4 08-25-2002 12:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-13-2006
zuessh zuessh is offline
Registered User
  
 

Join Date: May 2006
Posts: 34
way to copy only changed files

Hello, we are going through a restructoring of file systems and will need to copy the contents of one file system to another box, then a few days later copy it again. Is there a way on the second copy to only copy files that have changed? Thanks in advance
  #2 (permalink)  
Old 12-13-2006
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
rsync may suit your needs.

Last edited by cbkihong; 12-13-2006 at 11:35 PM..
  #3 (permalink)  
Old 12-14-2006
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
either rsync as mentioned or the find-command with the "-mtime" clause. man find for details.

bakunin
  #4 (permalink)  
Old 12-15-2006
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
cd /sourcedir;
find . -xdev -depth -print | cpio -pdm /destin_dir

# After some days ,

cd /sourcedir;
find . -xdev -depth -print | cpio -pdm /destin_dir

The second copy will copy only those files which were changed / created from the earlier copy made.

Regards,

Kaps
Sponsored Links
Closed Thread

Bookmarks

Tags
cpio

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



All times are GMT -4. The time now is 08:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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