Linux下CLI模式使用Dropbox

下载Dropbox

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 -

连接到Dropbox

~/.dropbox-dist/dropboxd

按照提示,在浏览器中打开链接,确认授权。

CLI模式使用Dropbox

下载执行脚本:

wget https://www.dropbox.com/download?dl=packages/dropbox.py
chmod +x dropbox.py

dropbox.py使用

root@hkvps:~# ./dropbox.py help
Dropbox command-line interface
commands:
Note: use dropbox help <command> to 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