←back to thread

2039 points Gadiguibou | 2 comments | | HN request time: 0.618s | source
Show context
mechanicker ◴[] No.36492709[source]
Use ‘ditto’ for copying directories. It is fast!

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

replies(1): >>36493264 #
1. cpach ◴[] No.36493264[source]
Ditto can also be useful for backup and restore since, AFAICT, it preserves file meta data. (Unlike rsync for example.)
replies(1): >>36512477 #
2. desro ◴[] No.36512477[source]
`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`