Moving Mac OS X user folders?

4

1

Is it possible to move the user folders (not the home folder itself) e.g. documents, photos, music etc to another location e.g. inside my Dropbox on Mac? If so how do I do it? I know I can do this in Windows by changing the target folder for 'My Documents' but being a relative beginner on Mac OS X I am unsure how to do this.

Danielb

Posted 2009-08-18T22:17:20.010

Reputation: 619

Fwiw, related question about moving the home folder itself: http://superuser.com/questions/25128/can-i-move-my-home-folder-in-mac-osx

– Jonik – 2009-08-18T23:08:43.247

Answers

6

In this case? No. However you can work around it by doing one of the following:

  1. Change your Dropbox folder location
    To do so, open up Dropbox's preference and press Move... and choose your home folder. This wouldn't be the option I'd recommend. (It's easier and more possible with Dropbox 0.8.x with selective sync and being able to move your Dropbox folder)

  2. Use Symlinks
    You can use symlinks to make it appear as though your Documents, Movies, etc. folders are in the Dropbox folder without actually breaking the file system (and having the folders recreated) that Mac OS X is expecting.

    You'll need to do this in the Terminal but you can run ln -s /Users/YOUR_SHORT_USERNAME/Documents /Users/YOUR_SHORT_USERNAME/Dropbox/Documents replacing the word Documents for whichever folder you need to.

    You can see more about this at Dropbox's wiki

Chealion

Posted 2009-08-18T22:17:20.010

Reputation: 22 932

1

Well, the easiest way I know of is to copy the user folder to the new location, then open System Preferences: Accounts.

Just unlock and 'Ctrl Click' your user account, select Advanced Options and set the new destination.

I'm not aware of any draw backs.

patrick

Posted 2009-08-18T22:17:20.010

Reputation: 950

This seems more like an answer to http://superuser.com/questions/25128/can-i-move-my-home-folder-in-mac-osx. Note that this question isn't about moving the home folder itself.

– Jonik – 2010-09-13T16:47:26.193

Ah… I see it's the plural (user folders). You are totally right. I guess it's ok, if I don't delete my answer. This way people read your comment and will have link for the other question/topic which maybe is what they are searching for. Cheers, – patrick – 2010-09-14T10:05:00.043

1

First copy your Documents folder to Dropbox, then open the OS X terminal an do the following:

sudo mv Documents OldDocuments
ln -s /Users/$(whoami)/Dropbox/Documents Documents

After that, you're welcome to delete OldDocuments, though you might need to do:

sudo rm OldDocuments

I am waiting for my Documents to finish syncing to DropBox before I try deleting.

Paul L

Posted 2009-08-18T22:17:20.010

Reputation: 11