I'd like to write a script to backup some files to my iCloud drive. The drive shows up in the Finder, but I don't see it from the command line. Is there a way to do something like:

cp mystuff.tgz /iCloudDrive/backups/

1 Answer 1


iCloud Drive directory is located here:

~/Library/Mobile Documents/com~apple~CloudDocs

There are some other directories listed inside Mobile Documents, their names depend on the app which owns them. For example: com~apple~Pages/.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .