Under iCloud in the Settings app, I have "Optimize Mac Storage" checked and "Desktop & Documents Folders" checked under "Apps that store documents and data in iCloud will appear here:"
This will cause some files in my "Documents" folder to be offloaded and replaced with a small file ending in ".icloud". I can download them by clicking on the cloud icon in the detail view in the Finder. I can also use "find" from the command line to show which files have been offloaded, eg "find . -name *.icloud | more".
Is there a command line way to cause these files to be downloaded, either by file or directory?
find . -name '.*icloud' | sed 's|\.\([^/]*\)\.icloud$|\1|g' | while read fn; do brctl download "$fn"; done
– Andriy Makukha Jun 09 '20 at 23:01find . -type f -name "*.icloud" -exec brctl download {} \;
– mrplants Sep 11 '20 at 20:14brctl log --wait --shorten
I getunrecognized option --wait
, but-w
worked for me. – mpoisot Dec 03 '20 at 18:48man brctl
suggests both are possible, at least on Catalina. – ldeck Dec 23 '20 at 10:13