Syncing Documents folder to Dropbox

PowerBook-G5

macrumors 65816
Original poster
Jul 30, 2013
1,228
1,042
The United States of America
Hello, I would like to know how I can setup my Mac so that my Documents folder is synced with Dropbox so that I can see all of my files on my iPhone. I already tried making an alias, but I cannot view the files on my iPhone. Is there any way to have the Documents folder sync to Dropbox automatically? Thanks.
 

SandboxGeneral

Moderator emeritus
Sep 8, 2010
24,965
7,904
Detroit
The easy way is to move the documents folder into the Dropbox folder. Then update your Finder sidebar shortcuts and you're all set.
 

Intell

macrumors P6
Jan 24, 2010
18,872
368
Inside
Try running this in Terminal, then restart:

Code:
mv ~/Documents/ ~/Dropbox/Documents/
ln -s ~/Dropbox/Documents/ ~/Documents
I think I got that right. What that will do is move your Documents folder to your Dropbox and make a symlink back to where it was. Make sure you make a backup of your Documents folder first. Though you should loose anything. Also, make sure your Dropbox is big enough to fully contain your Documents folder.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
29,144
8,813
California
Hello, I would like to know how I can setup my Mac so that my Documents folder is synced with Dropbox so that I can see all of my files on my iPhone. I already tried making an alias, but I cannot view the files on my iPhone. Is there any way to have the Documents folder sync to Dropbox automatically? Thanks.
Just leave the Documents folder where it is and run this command in Terminal. That will create a symlink between your Documents folder and Dropbox. That way you can just use the regular Documents folder like normal and everything in that folder will be synced to Dropbox.

Code:
ln -s ~/Documents ~/Dropbox/Documents
If will look like this in Finder in your Dropbox folder and the full Documents folder will be visible in the iOS DropBox app.



If you are not comfortable using the Terminal command, you can use the free app MacDropAny to make the symlink for you.
 

dribando

macrumors member
Jan 15, 2014
30
3
If I used the command:
"ln -s ~/Documents ~/Dropbox/Documents"
to create a symlink, how do I now remove that symlink?

I got an email from Dropbox that says the new cloud file management used by Sierra could wreak havoc on my data if I'm using symlinks and Dropbox together. Time to kill the symlink to be safe. Thanks.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
29,144
8,813
California
If I used the command:
"ln -s ~/Documents ~/Dropbox/Documents"
to create a symlink, how do I now remove that symlink?

I got an email from Dropbox that says the new cloud file management used by Sierra could wreak havoc on my data if I'm using symlinks and Dropbox together. Time to kill the symlink to be safe. Thanks.
This command will remove the symlink. I got that same email. It only applies if you are using iCloud Drive with a symlink to Documents like you have. If you do not have iCloud Drive turned on, your existing symlink won't cause a problem.

Code:
unlink ~/Dropbox/Documents
 

KALLT

macrumors 601
Sep 23, 2008
4,922
3,004
I got an email from Dropbox that says the new cloud file management used by Sierra could wreak havoc on my data if I'm using symlinks and Dropbox together. Time to kill the symlink to be safe. Thanks.
This is only a problem if you enable ‘Documents & Desktop’ in iCloud Drive. If you don’t use it, you can keep the symlink.