News for hackers. Stuff that matters.
Re:macOS command-line tools you might not know about by mechanicker on Tuesday June 27, 2023 @09:48AM (#36492709)
Use ‘ditto’ for copying directories. It is fast!

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

Re:macOS command-line tools you might not know about by cpach on Tuesday June 27, 2023 @10:24AM (#36493264)
Ditto can also be useful for backup and restore since, AFAICT, it preserves file meta data. (Unlike rsync for example.)
Re:macOS command-line tools you might not know about by desro on Wednesday June 28, 2023 @04:57PM (#36512477)
`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`