I am writing some little script that assembles backup data into one directory. The directory content will then be uploaded to a cloud service and after that we can remove it. I was wondering how one could utilize APFS' copy-on-write feature with a command like cp
in Terminal.
The Finder does a great job. But if I run cp Largefile LargeFileCopy
it takes forever to copy the file and also uses the space accordingly.
cp
on macOS with APFS — Interesting that copy-on-write must be opted in with-c
instead of being implicitly on as it is in the Finder. What were the design considerations behind this? Does anyone know? – Foretopsail