File Copying in OSX

Associate
Joined
18 Oct 2002
Posts
463
Location
Cambridgeshire
Hi,

I am trying to do something in OSX that seems so fundamentally easy in Windows yet seems to be a bit ridiculous if what I am finding is correct in OSX.

I have a NAS box that OSX can see and I can read and write to it without problem. I want to create a backup of my iTunes folder (along with other stuff) on the NAS.

OK, so I copy and paste my iTunes folder to the NAS and all is well.

But after a week I want to backup again so I copy and paste. The problem is it doesn't seem possible just to write only new/changed files. OSX only seems to offer to replace the whole folder which can take ages when it really only needs to update a handful of files.

In Windows this is easy. Windows does a copy and merge. Is there a workaround in OSX ?

Thanks
 
Thanks for the replies - I think it confirms I am not missing something obvious.

You know there are times when I am convinced Apple are just being utterly stubborn about the way they implement some things.
 
Apple users need to be more vocal and complain about the software.
They spend too long fawning over the designs and complaining about the hardware.

Finder is particularly cumbersome. It even makes Nautilus look good sometimes.
 
Yep, it is pretty lame that Finder won't merge. Isn't it nice how it "just works" in Windows Explorer (ohgodihatethatslogan)

It can be even worse than the OP's case, where files in the destination dir that are no longer in the source dir end up getting deleted (the message on the warning dialog doesn't do a very good job of making it clear what will happen)
 
Last edited:
I don't understand what the issue, maybe I'm missing something, but Finder does "merge" folders in exactly the same way Windows does, i.e. if there is a file that already exists it asks you if you want to replace it, or skip it.
 
Folder instance one has files: a, b, c, d
Folder instance two has files: c, e

Drag instance one on to instance two and the resultant folder has files: c, e

i.e. it doesn't have the option to merge, it just replaces the directory

You could argue that it makes sense conceptually (blah), but in practice it's often just a pain in the ass.
 
Last edited:
this is the way it always has been. it's a fundamental difference.

I have seen mac people be equally baffled by the windows behaviour or merging rather than replacing.

it's perfectly logical.
 
I wonder if you could write an AppleScript or Automator workflow todo it?

Could write a simple Objective-C program todo it..
 
I fell foul of this a while ago when I updated bits of my iTunes library to iTunes plus. It downloaded to my Mac, and I copied the local iTunes folder that contained a few updated songs over my proper library, stored on an external drive, thinking they would simply merge. It completely overwrote the library with the local folder containing a few files. I was gutted, as I lost a fair amount of music!

This I think, was the first time I thought Windows actually managed something better.
 
I looked at cp but I can't see any don't overwrite if older flag.

I don't think there is one.
You probably want rsync for that.

cp will just replace any file that is named the same. i.e. the same way as Windows does it.

If you want to do it graphically, then I think what you have to do is open the folder and select all the files within, then move them. As it's the files you want to move / replace, not the folder, although don't quote me on that.
 
Enter: a nested directory structure!

Yes. That's why I said one should move the files.

The point of the finder is that there is no such thing as a 'directory'. It's 'folders'. It's a tangible object. It's not a representation of any thing, it IS a thing in and of itself. It can't be in 2 places at once. (how can something exist twice if it is 'a' thing?) etc etc. It's the whole philosophy of the Finder.

Sure MacOSX (particulary the Finder) has come in for a lot of flack over the brain dead way it does things. But there are good reasons why go back 20+ years as to why things are done the way they are done. It's not wrong, it's just different.

And hence, it's the finder you people are having trouble with - not MacOSX so use another tool. Some tool were suggested above, but you can also just use the built in tools from the terminal. This works like it does in Window and Linux.
 
Back
Top Bottom