Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
malikjfernando
6 years agoHelpful | Level 5
Symlink changes - Mac OS sync desktop to Dropbox broken
I have tons of working files on my Mac desktop which I need to access on iOS and this worked well with symlink between desktop and dropbox folder. With the recent change where symlinks don't sync folder content, I am stuck.
Mac OS doesn't seem to allow the Desktop folder to be placed in Dropbox folder. Appreciate any tips!
10 Replies
Sort By
Replies have been turned off for this discussion
- niazy6 years agoHelpful | Level 6I had the same problem on a new MBP. In my case, I was able to delete the original desktop folder and create the symlink. But the something happens and my link gets deleted and a default Desktop folder is created.
The workaround I found was to 'Lock' the symlink file. Display the file (the Desktop link file in your home) and check the box labeled 'Locked.'
Hth - malikjfernando6 years agoHelpful | Level 5
hi thanks - i just can't seem to delete the original Desktop folder. Mac OS Catalina doesn't permit it when i tried. Will check if there is a terminal script
- Fiona6 years ago
Dropbox Staff
Hello everyone!
Symlinks are not supported and will not successfully sync with your Dropbox application the way they use to malikjfernando. Please check our Dropbox Help center article about this and the workaround to make this work: https://help.dropbox.com/installs-integrations/sync-uploads/symlinks
Here is also another Dropbox Community discussion, were niazy is being super helpful, providing this workaround (thank you for your participation. :heart:) :https://www.dropboxforum.com/t5/Files-folders/Best-practices-for-using-symlinks-symbolic-links/td-p/349296
Hope the workaround offered and the additional info can help. :slight_smile:
- jeff10546 years agoExplorer | Level 4
I think that just about all of the functionality that was lost when Dropbox dropped support for symlinks is still available (at least in MacOS), so long as care is taken in where files are actually stored and how the symlinks are created. You can have directories (actually symbolic links) that act like ~/src and ~/bin, but are synced across machines by Dropbox, if you are careful about where the files are actually stored and how the symbolic links are created.
For obvious reasons, Dropbox does not support soft (symbolic) links from inside of Dropbox to elsewhere on the system. This makes sense. Dropbox only syncs files that reside within its own directory structure. Having Dropbox sync files referred to by things like ~/Dropbox/mydir --> ~/mydir is a recipe for disaster. But things like ~/mydir --> ~/Dropbox/mydir make perfect sense.
The problem is that some of the obvious ways of creating those links do not work. For example, these fail:
% cd /Users/me/Dropbox% ln -s myfile ~/myfile% ln -s mydir ~/mydirThe results (~/myfile and ~/mydir) look like perfectly good soft links. But if you try to open ~/myfile or cd into ~/mydir, they fail.Similarly this fails:% cd /Users/me/Dropbox% ln -s myfile myfile2% mv myfile2 ~% ln -s mydir mydir2% mv mydir2 ~In short, if your current working directory is inside of Dropbox, your soft links are hosed if moved outside Dropbox. The same is true of aliases created by Finder inside of Dropbox.This, however, does work:% cd /Users/me% ln -s Dropbox/myfile .% ln -s Dropbox/mydir .The softlinks ~/myfile and ~/mydir can now be followed, both in a shell and by apps like Finder.So, you can have directories (folders) and files that effectively appear in random places in the file heirarchy that are synced by Dropbox.Maybe everybody else already knew this. But I didn't, nor did the support person I talked to at Dropbox. I hope it's helpful. - Fiona6 years ago
Dropbox Staff
Hello jeff1054.
Thanks for posting about symlinks and how they can work in your user case.
I merged your topic to this one to keep things neat.
I'd be happy to see you help around like you did today. Your feedback and solutions are always welcome.
Thanks for joining our Community! :grin:
- jeff10546 years agoExplorer | Level 4
cp -rp $1 ~/Dropbox ; rm -r $1 ; ln -s ~/Dropbox/$1 $1
Then on other machines: ln -s ~/Dropbox/$1 $1
And you have come pretty close to recreating the functionality of iCloud Drive. Or at least putting an existing directory tree onto a pretty nice network file system that is accessible when the network is down. ;-)
Cheers!
- dolphinnolongerneeded6 years agoNew member | Level 2
The only reason I pay for drop box is so I can Symlink a few key externally created files. If dropbox will not allow exernally created symlink files then I have no use for dropbox and will cancel my monthly subscription. Thank you.
- numan6 years agoHelpful | Level 6
so how do i do this on macs so that my desktop and downloads folder continue to funtion on Mac OS but are all synced across multiplpe macs?
This is the ONE KILLER feature I have relied upon and without it I really ahve little use for Dropbox.
- jeff10546 years agoExplorer | Level 4
numan I think it might be hard to use it for a Desktop, but don't especially see the need since iCloud syncs that well. As for as the Downloads folder, you can set a browser to download anywhere you want it to. So just make a folder in Dropbox and use it. There is no need to even worry about soft links from local folders unless you just especially want to have a file like ~/Mydownloads sitting in your home directory.
I should say that at this point I have a host of "local" files across several Macs (including things like ~/bin, ~/src and ~/Library/Script Libraries) that are really soft links to Dropbox files. It has become integral to my workflow. Even when doing development work I can sit down at whatever machine I happen to be in front of at the moment and pick up what I was doing pretty seamlessly.
- siamesekitten6 years agoExplorer | Level 4
I posted this answer on another similar thread but thought I would post it here too since you asked:
I'm a Mac consultant and I've been using the below excellent directions from ZDNet to sync Desktop and Documents folders across multiple computers via Dropbox for years. Also works for single computers, of course. Works perfectly and uses the method Dropbox recommends/supports. I've got literally dozens of clients using it. If you have a problem with the symlinks getting deleted, lock them, as mentioned in another thread.
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!