Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Dropbox in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Linux how to use Dropbox, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Dropbox is a very easy to use free network file synchronization tool, is an online storage service run by Dropbox company, through cloud computing to achieve file synchronization on the Internet, users can store and share files and folders. Dropbox provides free and paid services, while Dropbox's fee-based services include Dropbox Pro and Dropbox for Business. There is client software in different operating systems, and there are web clients.

When you use Dropbox on computer A, changes to all files in the specified folder will be automatically "synchronized" to Dropbox's server. The next time you need to use these files on computer B, you just need to log in to your account, and all synchronized files will be automatically downloaded to computer B. Similarly, the changes you make to a file on computer B will also be reflected in computer A, and all of this is fully automatic, so that your files can be kept up-to-date anytime, anywhere. Put the files into the Dropbox of a computer, and the files can be instantly synchronized to the server side of Dropbox, and these files can be accessed on any computer that has Dropbox installed. You can use a computer or mobile terminal to access these files from the Dropbox website.

Through the Dropbox client, the user can drop any file into a specified folder, and then it will be synchronized to the cloud and other computers on which the user has the Dropbox client.

The files in the Dropbox folder can then be shared with other Dropbox users or accessed through a web page. Users can also upload files manually through a web browser. As a storage service, Dropbox mainly focuses on synchronization and sharing. Dropbox supports revision of history, and even if files are deleted, they can be recovered from any synchronized computer. Through the version control of Dropbox, users can know the historical records of the files they work together, so that many people participate in editing and republishing the files, so that the previous records will not be lost because of concurrency. The history of version records is limited to 30 days, and unlimited version records can be achieved by payment, which is called "Pack-Rat". The differential coding technology is used in the version record. in order to save bandwidth and time, when the files in the user's Dropbox folder are changed, Dropbox only uploads the changed files and implements synchronization. Although the desktop client does not limit the size of a single file, the maximum size of a single file uploaded through a website is 300MB. Dropbox uses Amazon's S3 storage system to store files. And use SoftLayer technology to purchase and build back-end infrastructure. Dropbox synchronization uses SSL to transmit data, while storage is encrypted through AES-256.

Of course, Linux platform also has its own Dropbox client: both command line client and graphical interface client. Dropbox Uploader is an easy-to-use Dropbox command-line client written in the Bash scripting language. In this tutorial, I will describe how to use Dropbox Uploader to access Dropbox from the command line in Linux.

Install and configure Dropbox Uploader in Linux

To use Dropbox Uploader, you need to download the script and make it executable.

The code is as follows:

$wget https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh

$chmod + x dropbox_uploader.sh

Make sure you have curl installed on your system, because Dropbox Uploader runs Dropbox's API through curl.

To configure Dropbox Uploader, simply run dropbox_uploader.sh. When you run this script for the first time, it will request authorization so that the script can access your Dropbox account.

The code is as follows:

$. / dropbox_uploader.sh

As shown in the figure above, you need to access the https://www.dropbox.com/developers/apps page through a browser and create a new Dropbox app. Then fill in the relevant information about the new app as shown below, and enter the name of the app, which is similar to the app name generated by Dropbox Uploader.

After you have created a new app, you will see app key and app secret on the next page. Please remember them.

Then type app key and app secret in the terminal window where dropboxuploader.sh is running. Dropboxuploader.sh will then generate an oAUTH URL (for example, https://www.dropbox.com/1/oauth/authorize?oauth_token=XXXXXXXXXXXX).

Then access the oAUTH URL through the browser and agree to access your Dropbox account.

This completes the configuration of Dropbox Uploader. To confirm that Dropbox Uploader is really successfully authenticated, run the following command.

The code is as follows:

$. / dropbox_uploader.sh info

Dropbox Uploader v0.12

> Getting info...

Name: Dan Nanni

UID: XXXXXXXXXX

Email: my@email_address

Quota: 2048 Mb

Used: 13 Mb

Free: 2034 Mb

Dropbox Uploader example

To display everything in the root directory, run:

The code is as follows:

$. / dropbox_uploader.sh list

To list everything in a particular folder, run:

The code is as follows:

$. / dropbox_uploader.sh list Documents/manuals

To upload a local file to a remote Dropbox folder, use:

The code is as follows:

$. / dropbox_uploader.sh upload snort.pdf Documents/manuals

To download a remote file locally from Dropbox, use:

The code is as follows:

$. / dropbox_uploader.sh download Documents/manuals/mysql.pdf. / mysql.pdf

To download a complete remote folder from Dropbox to a local folder, run:

The code is as follows:

$. / dropbox_uploader.sh download Documents/manuals. / manuals

To create a new remote folder on Dropbox, use:

The code is as follows:

$. / dropbox_uploader.sh mkdir Documents/whitepapers

To completely delete a remote folder (including everything it contains) in Dropbox, run:

The code is as follows:

$. / dropbox_uploader.sh delete Documents/manuals

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report