advertisement

Article:
  Learning the Mac OS X Terminal, Part 5
Subject:   ditto and find
Date:   2002-07-24 04:20:17
From:   sperling
Thank you for another informative article. I learned of the existence of ditto!


Why not use ditto with the Unix tool 'find'? This will eliminate need for rsync.


An excellent introduction to find is found in AEleen Frisch's book about Essential System Administration, and in fact the bit about find is in the free sample chapter (which is so good that you will run out to buy the book):
http://www.oreilly.com/catalog/esa2/chapter/ch03.html


It is fairly straightforward to write a shell script that combines ditto and find to back things up in quite a tailored fashion (for example, excluding Library or other directories). The only problem, mentioned in many of the other messages, is the ditto filename length problem.