Dropboxlinux command line _ How to use commands in Linux to manage Dropbox

Source: Internet
Author: User
Tags oauth dropbox customer service
Dropbox does not need to be introduced. Overseas network disks are no longer accessible. Compared with domestic network disks, Dropbox started very early. Although free space is small and only 2 GB (15 GB for several domestic companies), the advantage is that it supports multiple platforms. As far as I know, currently, only Kingsoft network disks support macos in China, but not linux. Dropbox in windows,

Cloud storage on the Internet now supports many hardware devices. Dropbox is widely used due to its uidesign and multi-platform support features. It makes its various official and unofficial customer services available on various platforms.

In Linux, there is a Dropbox customer service client: the CLI client is a GUI-based client. The Dropbox Uploader is an easy-to-use Dropbox CLI client written in BASH. This article will introduce howCommandUsing the Dropbox Uploader to upload files

Install and configure the Dropbox Uploader on Linux

To use the Dropbox uploader, You need to download the following script and add executable permissions.

$ Wget https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh
$ Chmod + x dropbox_uploader.sh

But check whether the system has been installed.CurlBecause the Dropbox Uploader is executed through the Dropbox Interface

Setting the Dropbox Uploader is simple. You only need to execute dRopbox_uploader.shThe first time you run this script, you need to authorize the Dropbox account.

$./Dropbox_uploader.sh

Based on the access https://www.dropbox.com/developers/apps described above, create a Dropbox APP. Fill in the relevant information (e.g.), and then enter the username generated by the Dropbox Uploader

After an app is created, a key will be generated on the subsequent page. Note the key.

Enter the key generated above the address executed by dropbox_uploader.sh, such as xxxxx.Dropbox_uploader.shWill generate an oAUTH URL (like this: https://www.dropbox.com/1/oauth/authorize? Oauth_token = XXXXXXXXXXXX ).

Access the oAUTH URL generated above to authorize the Dropbox account

This completes the legendary configuration of Dropbox. You can use the following command to check whether the authorization is successful.

$./Dropbox_uploader.sh info
Dropbox Uploader v0.12 > Getting info... Name:Dan NanniUID:XXXXXXXXXXEmail:my@email_addressQuota:2048 MbUsed:13 MbFree:2034 Mb
Example of Dropbox Uploader

List all top-level folders

$./Dropbox_uploader.sh list

List objects in a specific directory:

$./Dropbox_uploader.sh list Documents/manuals

Upload local files

$./Dropbox_uploader.sh upload snortdocuments/manuals

Download an object from Dropbox

$./Dropbox_uploader.sh download Documents/manuals/mysqlscripts./mysqlscripts

Download the entire folder from Dropbox

$./Dropbox_uploader.sh download Documents/manuals./manuals

Remotely create a Dropbox folder

$./Dropbox_uploader.sh mkdir Documents/whitepapers

Delete a folder in Dropbox

$./Dropbox_uploader.sh delete Documents/manuals
Reference: http://xmodulo.com/access-dropbox-command-line-linux.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.