Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Dropbox Nautilus sync running. I want to programmatically pause sync, then do something to the directory, and then resume sync again. Is there a way to pause and resume Dropbox Nautilus sync from the command line?

share|improve this question
    
possible duplicate of Programmatically sync dropbox without daemon running –  Glutanimate Dec 17 at 12:48
    
Even though this is the older question, I've marked it as a duplicate of this one because the other question features more detailed and useful answers. –  Glutanimate Dec 17 at 12:50

2 Answers 2

up vote 8 down vote accepted

You can control the Dropbox daemon by using dropbox with the start and stop command. Type dropbox help to view the full list of available commands.

share|improve this answer

Install dropbox using the download from dropbox.com.

Install Dropbox via command line The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.

32-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

64-bit:

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.

~/.dropbox-dist/dropboxd

If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory. Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.

Now run the dropbox daemon only when you want your folders to sync.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.