 |
 |
Copy only changed files
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status:
Offline
|
|
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
|
|
How do you define "new or newer"?
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status:
Offline
|
|
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?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status:
Offline
|
|
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
|
|
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. 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2003
Location: Atlanta
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status:
Offline
|
|
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
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|