copy only updated items

pstewart

Registered
How can I copy only the new or updated items from a directory?

In Unix, I can write the following:
Code:
cp -ufv sourcedir/* destdir
and it will compare the source file timestamp to the destination, and overwrite it if the source is newer, and if no destination file exists, it will just copy over the file as usual.

However, reading the mac man pages, there is no equivalent. Also, I noticed the GUI doesn't offer anything similar to the "Merge or Replace" dialogue in windows, whereby you can just dump in the new stuff but not overwrite the old.

Is there a way to accomplish this in OSX?
 
Back
Top