GentooのCUIでDropboxの同期を設定する
ファイルサーバーで使っているGentooにもDropboxとの同期をさせるようにしました。
dropbox-cliをemergeするとdropboxコマンドも依存関係で入りました。
# emerge net-misc/dropbox-cli
dropboxを実行してアカウントに接続します
# dropbox
This computer isn't linked to any Dropbox account... Please visit https://www.dropbox.com/cli_link?host_id=ハッシュ to link this device.
httpsから始まるURLを適当なブラウザで開いてdropboxにログインすればリンクが始まります。
This computer is now linked to Dropbox. Welcome Your Name
ユーザがログインした際に自動でdropboxdを起動するように設定します、
# dropbox-cli autostart y
ホームディレクトリにDropboxディレクトリが作成され、同期が終われば普通に使えます。
コマンドの説明はdropbox-cliを実行すると表示されるので一度見ておきましょう。
# dropbox-cli Dropbox command-line interface commands: Note: use dropbox helpto view usage for a specific command. status get current status of the dropboxd help provide help puburl get public url of a file in your dropbox stop stop dropboxd running return whether dropbox is running start start dropboxd filestatus get current sync status of one or more files ls list directory contents with current sync status autostart automatically start dropbox at login exclude ignores/excludes a directory from syncing lansync enables or disables LAN sync