-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38fc14f
commit 757b612
Showing
2 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ It's written in BASH scripting language and only needs **cURL**. | |
* **Portable:** It's written in BASH scripting and only needs *cURL* (curl is a tool to transfer data from or to a server, available for all operating systems and installed by default in many linux distributions). | ||
* **Secure:** It's not required to provide your username/password to this script, because it uses the official Dropbox API for the authentication process. | ||
|
||
Please refer to the [Wiki](https://github.com/andreafabrizi/Dropbox-Uploader/wiki) for tips and additional information about this project. The Wiki is also the place where you can share your scripts and examples related to Dropbox Uploader. | ||
Please refer to the <Wiki>(https://github.com/andreafabrizi/Dropbox-Uploader/wiki) for tips and additional information about this project. The Wiki is also the place where you can share your scripts and examples related to Dropbox Uploader. | ||
|
||
## Getting started | ||
|
||
|
@@ -37,41 +37,42 @@ Then give the execution permission to the script and run it: | |
The syntax is quite simple: | ||
|
||
``` | ||
./dropbox_uploader.sh COMMAND [PARAMETERS]... | ||
./dropbox_uploader.sh COMMAND <PARAMETERS>... | ||
[%%]: Required param | ||
<%%>: Optional param | ||
<%%>: Optional param | ||
<%%>: Required param | ||
``` | ||
|
||
**Available commands:** | ||
|
||
* **upload** [LOCAL_FILE/DIR] <REMOTE_FILE/DIR> | ||
* **upload** <LOCAL_FILE/DIR ...> <REMOTE_FILE/DIR> | ||
Upload a local file or directory to a remote Dropbox folder. | ||
If the file is bigger than 150Mb the file is uploaded using small chunks (default 4Mb); | ||
in this case a . (dot) is printed for every chunk successfully uploaded and a * (star) if an error | ||
occurs (the upload is retried for a maximum of three times). | ||
Only if the file is smaller than 150Mb, the standard upload API is used, and if the -p option is used | ||
the default curl progress bar is displayed during the upload process. | ||
the default curl progress bar is displayed during the upload process. | ||
The local file/dir parameter supports wildcards expansion. | ||
|
||
* **download** [REMOTE_FILE/DIR] <LOCAL_FILE/DIR> | ||
* **download** <REMOTE_FILE/DIR> [LOCAL_FILE/DIR] | ||
Download file or directory from Dropbox to a local folder | ||
|
||
* **delete** [REMOTE_FILE/DIR] | ||
* **delete** <REMOTE_FILE/DIR> | ||
Remove a remote file or directory from Dropbox | ||
|
||
* **move** [REMOTE_FILE/DIR] [REMOTE_FILE/DIR] | ||
* **move** <REMOTE_FILE/DIR> <REMOTE_FILE/DIR> | ||
Move o rename a remote file or directory | ||
|
||
* **copy** [REMOTE_FILE/DIR] [REMOTE_FILE/DIR] | ||
* **copy** <REMOTE_FILE/DIR> <REMOTE_FILE/DIR> | ||
Copy a remote file or directory | ||
|
||
* **mkdir** [REMOTE_DIR] | ||
* **mkdir** <REMOTE_DIR> | ||
Create a remote directory on DropBox | ||
|
||
* **list** <REMOTE_DIR> | ||
* **list** [REMOTE_DIR] | ||
List the contents of the remote Dropbox folder | ||
|
||
* **share** [REMOTE_FILE] | ||
* **share** <REMOTE_FILE> | ||
Get a public share link for the specified file or directory | ||
|
||
* **info** | ||
|
@@ -82,7 +83,7 @@ Unlink the script from your Dropbox account | |
|
||
|
||
**Optional parameters:** | ||
* **-f [FILENAME]** | ||
* **-f <FILENAME>** | ||
Load the configuration file from a specific file | ||
|
||
* **-s** | ||
|
@@ -182,12 +183,12 @@ Andrea Fabrizi - [email protected] | |
Type help for the list of the available commands. | ||
|
||
andrea@DropBox:/$ ls | ||
[D] Camera Uploads | ||
[D] Public | ||
[D] scripts | ||
[D] ServerBackup | ||
<D> Camera Uploads | ||
<D> Public | ||
<D> scripts | ||
<D> ServerBackup | ||
andrea@DropBox:/$ cd ServerBackup | ||
andrea@DropBox:/ServerBackup$ ls | ||
[F] backup.zip | ||
<F> backup.zip | ||
andrea@DropBox:/ServerBackup$ get backup.zip | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters