Skip to content

Commit

Permalink
Updated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafabrizi committed Jan 17, 2014
1 parent 38fc14f commit 757b612
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
&lt;%%&gt;: Optional param
<%%>: Required param
```

**Available commands:**

* **upload** [LOCAL_FILE/DIR] &lt;REMOTE_FILE/DIR&gt;
* **upload** &lt;LOCAL_FILE/DIR ...&gt; &lt;REMOTE_FILE/DIR&gt;
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] &lt;LOCAL_FILE/DIR&gt;
* **download** &lt;REMOTE_FILE/DIR&gt; [LOCAL_FILE/DIR]
Download file or directory from Dropbox to a local folder

* **delete** [REMOTE_FILE/DIR]
* **delete** &lt;REMOTE_FILE/DIR&gt;
Remove a remote file or directory from Dropbox

* **move** [REMOTE_FILE/DIR] [REMOTE_FILE/DIR]
* **move** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
Move o rename a remote file or directory

* **copy** [REMOTE_FILE/DIR] [REMOTE_FILE/DIR]
* **copy** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
Copy a remote file or directory

* **mkdir** [REMOTE_DIR]
* **mkdir** &lt;REMOTE_DIR&gt;
Create a remote directory on DropBox

* **list** &lt;REMOTE_DIR&gt;
* **list** [REMOTE_DIR]
List the contents of the remote Dropbox folder

* **share** [REMOTE_FILE]
* **share** &lt;REMOTE_FILE&gt;
Get a public share link for the specified file or directory

* **info**
Expand All @@ -82,7 +83,7 @@ Unlink the script from your Dropbox account


**Optional parameters:**
* **-f [FILENAME]**
* **-f &lt;FILENAME&gt;**
Load the configuration file from a specific file

* **-s**
Expand Down Expand Up @@ -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
&lt;D&gt; Camera Uploads
&lt;D&gt; Public
&lt;D&gt; scripts
&lt;D&gt; ServerBackup
andrea@DropBox:/$ cd ServerBackup
andrea@DropBox:/ServerBackup$ ls
[F] backup.zip
&lt;F&gt; backup.zip
andrea@DropBox:/ServerBackup$ get backup.zip
```
2 changes: 1 addition & 1 deletion dropbox_uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function usage
echo -e "Usage: $0 COMMAND [PARAMETERS]..."
echo -e "\nCommands:"

echo -e "\t upload <LOCAL_FILE/DIR> <REMOTE_FILE/DIR>"
echo -e "\t upload <LOCAL_FILE/DIR ...> <REMOTE_FILE/DIR>"
echo -e "\t download <REMOTE_FILE/DIR> [LOCAL_FILE/DIR]"
echo -e "\t delete <REMOTE_FILE/DIR>"
echo -e "\t move <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>"
Expand Down

0 comments on commit 757b612

Please sign in to comment.