UNIXETC

Linux下CLI模式使用Dropbox

目录

下载Dropbox #

32-bit:

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

64-bit:

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

连接到Dropbox #

1
    ~/.dropbox-dist/dropboxd

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

CLI模式使用Dropbox #

下载执行脚本:

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

dropbox.py使用

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
    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