Hacker News new | ask | show | jobs
by mechanicker 1093 days ago
Use ‘ditto’ for copying directories. It is fast!

https://osxdaily.com/2014/06/11/use-ditto-copy-files-directo...

1 comments

Ditto can also be useful for backup and restore since, AFAICT, it preserves file meta data. (Unlike rsync for example.)
`ditto` will also preserve resource forks, which is occasionally necessary for not breaking apps or installer pkgs. I've had to use it when doing a semi-automated deployment of some zipped-up software to a hundred or so Macs via bash over ARD. `ditto -xkv`