You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Douglas16's avatar
Douglas16
Explorer | Level 4
8 years ago

It's possible change the default folder of dropbox to another folder?

Hello guys,  I'd like to know if it's possible to change the dropbox default folder (~/Dropbox) to another folder? For exemple, change the folder ~/Dropbox for /mnt/another/path, understand?

 

PS: I NEED do this via command line.

 

Any help and tips are welcome.

Thanks in advanced!!

  • Rich's avatar
    Rich
    8 years ago
    Looking at a few other posts from Dropboxers in the past, there is no method to move the Dropbox folder from the command line.
  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    You can move the Dropbox folder to another location (though I don't know if it's possible via command line) but the folder itself will always be called Dropbox.
    • Douglas16's avatar
      Douglas16
      Explorer | Level 4

      Yeah, I found a way to do this via interface(https://www.dropbox.com/en/help/89), is easy, but as I said, I need do this via command line for the following reason: I should do this in another computer, in our local network, that I access via SSH protocol, I already installed the dropbox and logged in my dropbox account from this another computer via ssh protocol, but still missing make this little change.

       

      Well even so,thanks very much for your time!

       

      Any helps is welcome,folks!

      • cilynx's avatar
        cilynx
        New member | Level 2

        It's not a perfect solution, but you can stop the dropbox daemon, move the data folder, then symlink the data folder in its new location back to your home directory.  I used this setup to move my dropbox data folder to an external drive when it got bigger than the SSD in my desktop.

         

        dropbox stop
        mv ~/Dropbox /mnt/another/path/
        ln -s /mnt/another/path/Dropbox ~/
        dropbox start

        Just make sure your system is setup to mount the external drive before the dropbox daemon starts otherwise the daemon will get upset.  Fortunately (in my opinion) since ~/Dropbox will be a broken link if the external drive isn't there as opposed to an empty folder, the dropbox daemon will just complain and not do anything as opposed to trying to build a new replica on your system drive.