LoginSignup
16
17

More than 5 years have passed since last update.

CentOSでDropbox

Last updated at Posted at 2013-11-20

インストール

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

初回起動

$ ~/.dropbox-dist/dropboxd
This client is not linked to any account...
Please visit https://www.dropbox.com/cli_link?host_id=xxxxxxxxxxx to link this machine.

表示されたURLを叩くとDropboxパスワードを聞かれ、パスワード入力するとアカウントのリンク完了。

CLIスクリプトインストール

$ mkdir ~/bin && cd ~/bin
$ wget "https://www.dropbox.com/download?dl=packages/dropbox.py"
$ chmod 755 ./dropbox.py

CLIスクリプト使い方

  • dropbox.py help ヘルプ表示
  • dropbox.py status 状態表示
  • dropbox.py start 同期開始
  • dropbox.py stop 同期停止
  • dropbox.py autostart (y/n) 同期自動開始
  • dropbox.py exclude list 同期除外ディレクトリ一覧
  • dropbox.py exclude add PATH 同期除外ディレクトリ追加 PATH例: Dropbox/working
  • dropbox.py exclude remove PATH 同期除外ディレクトリ追加
  • dropbox.py lansync (y/n) LanSyncの有効/無効

VPSなどではLanSyncを無効に

$ ~/bin/dropbox.py lansync n

参考

環境

CentOS6.4 (さくらのVPS)

16
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
17