Dropbox: Difference between revisions

From csml-wiki.northwestern.edu
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
===Creating a Dropbox Folder on Your Machine===
It is easy to link your home folder with your Dropbox. By default, the Dropbox will be accessible as <tt>~/Dropbox</tt>. Before doing so, there are two important considerations:
It is easy to link your home folder with your Dropbox. By default, the Dropbox will be accessible as <tt>~/Dropbox</tt>. Before doing so, there are two important considerations:


Line 9: Line 10:
* Clearly, if you store your Dropbox on scratch it will be ignored in the daily backup. However, even if you keep it actually in your home folder, the backup script will skip the Dropbox.
* Clearly, if you store your Dropbox on scratch it will be ignored in the daily backup. However, even if you keep it actually in your home folder, the backup script will skip the Dropbox.


===Installing Dropbox===
* To install the dropbox daemon on your machine, run the following command from your terminal:
<pre>
$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
</pre>
* Next, run the Dropbox daemon from the newly created .dropbox-dist folder, using the following command:
<pre>
~/.dropbox-dist/dropboxd
</pre>


===Additional Notes===
(need notes on installing Dropbox here)

Some additional notes:


* The Dropbox daemon (which synchronizes your ~/Dropbox folder with the actual Dropbox) starts automatically when you log in to the graphical desktop. However, if your machine is restarted (so that the daemon is killed) and you log in remotely (before logging in to the graphical desktop), the Dropbox daemon will have to be started manually. This is done via
* The Dropbox daemon (which synchronizes your ~/Dropbox folder with the actual Dropbox) starts automatically when you log in to the graphical desktop. However, if your machine is restarted (so that the daemon is killed) and you log in remotely (before logging in to the graphical desktop), the Dropbox daemon will have to be started manually. This is done via
Line 23: Line 31:
** On your home machine, stop the Dropbox daemon via <tt>dropbox stop</tt>
** On your home machine, stop the Dropbox daemon via <tt>dropbox stop</tt>
** Create the Dropbox folder on scratch
** Create the Dropbox folder on scratch
** MOVE the contents from ~/Dropbox to this new scratch folder
** Move the contents from ~/Dropbox to this new scratch folder
** Remove the (now empty) folder ~/Dropbox
** Remove the (now empty) folder ~/Dropbox
** Create a symbolic link ~/Dropbox to the Dropbox folder on scratch
** Create a symbolic link ~/Dropbox to the Dropbox folder on scratch (as described near the top of this page)
** Restart the Dropbox daemon via <tt>dropbox start</tt>
** Restart the Dropbox daemon via <tt>dropbox start</tt>

==Dropbox gets stuck "Connecting"==
Remove ~/.dropbox and ~/.dropbox-dist and reinstall. This results from stopping dropbox during the synch process or trying to selectively synch without first pausing.

Latest revision as of 14:20, 5 February 2015

Creating a Dropbox Folder on Your Machine

It is easy to link your home folder with your Dropbox. By default, the Dropbox will be accessible as ~/Dropbox. Before doing so, there are two important considerations:

  • If you have a large Dropbox, you may wish to make sure that the Dropbox contents are not actually stored in your $HOME folder (where they would count against your quota). The easiest way to do this is to create a folder in your scratch partition (e.g., ~/Scratch/Dropbox) and then create a symbolic link to this folder, via
ln -s /scratch/Dropbox ~/Dropbox

The only drawback is that your scratch partition is typically only available on a few machines (e.g., not on ariadne itself).

  • Clearly, if you store your Dropbox on scratch it will be ignored in the daily backup. However, even if you keep it actually in your home folder, the backup script will skip the Dropbox.

Installing Dropbox

  • To install the dropbox daemon on your machine, run the following command from your terminal:
$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
  • Next, run the Dropbox daemon from the newly created .dropbox-dist folder, using the following command:
~/.dropbox-dist/dropboxd

Additional Notes

  • The Dropbox daemon (which synchronizes your ~/Dropbox folder with the actual Dropbox) starts automatically when you log in to the graphical desktop. However, if your machine is restarted (so that the daemon is killed) and you log in remotely (before logging in to the graphical desktop), the Dropbox daemon will have to be started manually. This is done via
dropbox start

It is important to do this only on your home machine. If you do it on multiple machines (or even by accident, by putting the dropbox start command in your ~/.bashrc script --- clearly, do NOT do this!), you will end up with conflicts, since multiple independent daemons will all start to synchronize the same folder.

  • If you have NOT put your Dropbox on scratch and wish to change this, proceed as follows:
    • On your home machine, stop the Dropbox daemon via dropbox stop
    • Create the Dropbox folder on scratch
    • Move the contents from ~/Dropbox to this new scratch folder
    • Remove the (now empty) folder ~/Dropbox
    • Create a symbolic link ~/Dropbox to the Dropbox folder on scratch (as described near the top of this page)
    • Restart the Dropbox daemon via dropbox start

Dropbox gets stuck "Connecting"

Remove ~/.dropbox and ~/.dropbox-dist and reinstall. This results from stopping dropbox during the synch process or trying to selectively synch without first pausing.