Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Copy only changed files

Copy only changed files
Thread Tools
cgc
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status: Offline
Reply With Quote
Apr 21, 2003, 10:37 AM
 
There is probably a simple solution to the problem I have. What I want to do is to copy only the new or newer (according to date/time) files from one location to another. I tried cp and couldn't do it. Then I tried zip with the update option on. That kind of worked but it copies packages as folders (not sure if that is a problem though). If there an easy way to do it? Thanks.
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Apr 21, 2003, 11:01 AM
 
How do you define "new or newer"?

Craig
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Apr 21, 2003, 01:23 PM
 
Rsync is made explicity for that purpose. Alternately, you could roll your own with a combination of somehting like 'find -ctime xxxx -exec cp {} dest/'
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
cgc  (op)
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status: Offline
Reply With Quote
Apr 21, 2003, 02:08 PM
 
New: a file in the source not in the destination
Newer: a file in the source that is newer than it's copy in the destination

It made sense to me

I seriously need to get a Unix book. Does anyone think the release of OS X 10.3 will introduce many changes to the terminal command list? Any good Unix books for beginners?
     
cgc  (op)
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status: Offline
Reply With Quote
Apr 21, 2003, 02:09 PM
 
Originally posted by Arkham_c:
Rsync is made explicity for that purpose. Alternately, you could roll your own with a combination of somehting like 'find -ctime xxxx -exec cp {} dest/'
Thanks...I'll give it a try.
     
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status: Offline
Reply With Quote
Apr 26, 2003, 02:05 AM
 
not a cli solution, but deja vu will do just that, however it requires a folder to be copied -- won't do a single file.

I have deja vu doing all my backups in mirror mode - it is wonderful.
// hōtani
MDD G4 dual 867
     
Senior User
Join Date: Feb 2003
Location: Atlanta
Status: Offline
Reply With Quote
Apr 26, 2003, 09:23 AM
 
Any good Unix books for beginners?
Oreilly's Learning Unix for Mac OS X is really good.
     
cgc  (op)
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status: Offline
Reply With Quote
Apr 28, 2003, 02:12 PM
 
Thanks...I'll try Deja Vu and probably buy it. I'll probably get that book too after I check if my wife wants ny books of her own (save on shipping).
     
Forum Regular
Join Date: Apr 2000
Location: Germany
Status: Offline
Reply With Quote
May 8, 2003, 07:10 AM
 
Originally posted by Arkham_c:
Rsync is made explicity for that purpose. Alternately, you could roll your own with a combination of somehting like 'find -ctime xxxx -exec cp {} dest/'
does rsync also work for volumes mounted with smb? the one i'm using here is a volume from an nt-server that i can only access via netlogon. i'm a bit hesitant to just try, in case some other person's data get's lost.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
May 10, 2003, 02:30 AM
 
rsync has a "dry run" mode where it will connect to the volume (or remote server) and check to see which files would be moved, but it will not move any files nor otherwise make any changes to files/volumes. If it can't talk to the volume, the dry run will fail.
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 08:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2