droxul 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,345 +1,345 @@
1
- # Droxul
2
-
3
- A Command-line tool to access Dropbox for linux and GitBash
4
-
5
-
6
- ## Install
7
-
8
- ```bash
9
- # Install
10
- npm i droxul --g
11
-
12
-
13
- ```
14
- ### Install your Dropbox API Key
15
- * Run droxul
16
- ```bash
17
- droxul
18
- # You should be asked/being forwarded for your API key generator on the Dropbox site
19
- ## Or go to: https://www.dropbox.com/developers/apps
20
- # Access token:
21
- ```
22
-
23
- ## Usage:
24
- ```bash
25
- #upload
26
- droxul upload mybackup.tar.gz /backups/mybackup.tar.gz
27
- droxul list /
28
- droxul download /backups/mybackup.tar.gz
29
- # ... Type only droxul on the prompt
30
- ```
31
- ### Full Usage list
32
-
33
- ```txt
34
- Dropbox Uploader v1.0
35
- Andrea Fabrizi - andrea.fabrizi@gmail.com
36
- Packaged and distributed by: Guillaume Descoteaux-Isabelle,2018-2020
37
-
38
- Usage: droxul [PARAMETERS] COMMAND...
39
-
40
- Commands:
41
- upload <LOCAL_FILE/DIR ...> <REMOTE_FILE/DIR>
42
- download <REMOTE_FILE/DIR> [LOCAL_FILE/DIR]
43
- delete <REMOTE_FILE/DIR>
44
- move <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
45
- copy <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
46
- mkdir <REMOTE_DIR>
47
- list [REMOTE_DIR]
48
- monitor [REMOTE_DIR] [TIMEOUT]
49
- share <REMOTE_FILE>
50
- saveurl <URL> <REMOTE_DIR>
51
- search <QUERY>
52
- info
53
- space
54
- unlink
55
-
56
- Optional parameters:
57
- -f <FILENAME> Load the configuration file from a specific file
58
- -s Skip already existing files when download/upload. Default: Overwrite
59
- -d Enable DEBUG mode
60
- -q Quiet mode. Don't show messages
61
- -h Show file sizes in human readable format
62
- -p Show cURL progress meter
63
- -k Doesn't check for SSL certificates (insecure)
64
- -x Ignores/excludes directories or files from syncing. -x filename -x directoryname. example: -x .git
65
-
66
- For more info and examples, please see the README file.
67
- ```
68
-
69
-
70
- ---
71
- Bellow is credit and refs
72
- ---
73
-
74
- ## based on: Dropbox Uploader
75
- * from : andreafabrizi
76
-
77
-
78
- Dropbox Uploader is a **BASH** script which can be used to upload, download, delete, list files (and more!) from **Dropbox**, an online file sharing, synchronization and backup service.
79
-
80
- It's written in BASH scripting language and only needs **cURL**.
81
-
82
- You can take a look to the [GiHub project page](https://github.com/andreafabrizi/Dropbox-Uploader).
83
-
84
- **Why use this script?**
85
-
86
- * **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).
87
- * **Secure:** It's not required to provide your username/password to this script, because it uses the official Dropbox API v2 for the authentication process.
88
-
89
- 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.
90
-
91
- ## Features
92
-
93
- * Cross platform
94
- * Support for the official Dropbox API v2
95
- * No password required or stored
96
- * Simple step-by-step configuration wizard
97
- * Simple and chunked file upload
98
- * File and recursive directory download
99
- * File and recursive directory upload
100
- * Shell wildcard expansion (only for upload)
101
- * Delete/Move/Rename/Copy/List/Share files
102
- * Create share link
103
- * Monitor for changes
104
-
105
- ## Getting started
106
-
107
- First, clone the repository using git (recommended):
108
-
109
- ```bash
110
- git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
111
- ```
112
-
113
- or download the script manually using this command:
114
-
115
- ```bash
116
- curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh
117
- ```
118
-
119
- Then give the execution permission to the script and run it:
120
-
121
- ```bash
122
- $chmod +x dropbox_uploader.sh
123
- $./dropbox_uploader.sh
124
- ```
125
-
126
- The first time you run `dropbox_uploader`, you'll be guided through a wizard in order to configure access to your Dropbox. This configuration will be stored in `~/.dropbox_uploader`.
127
-
128
- ## Usage
129
-
130
- The syntax is quite simple:
131
-
132
- ```
133
- ./dropbox_uploader.sh [PARAMETERS] COMMAND...
134
-
135
- [%%]: Optional param
136
- <%%>: Required param
137
- ```
138
-
139
- **Available commands:**
140
-
141
- * **upload** &lt;LOCAL_FILE/DIR ...&gt; &lt;REMOTE_FILE/DIR&gt;
142
- Upload a local file or directory to a remote Dropbox folder.
143
- If the file is bigger than 150Mb the file is uploaded using small chunks (default 50Mb);
144
- in this case a . (dot) is printed for every chunk successfully uploaded and a * (star) if an error
145
- occurs (the upload is retried for a maximum of three times).
146
- Only if the file is smaller than 150Mb, the standard upload API is used, and if the -p option is specified
147
- the default curl progress bar is displayed during the upload process.
148
- The local file/dir parameter supports wildcards expansion.
149
-
150
- * **download** &lt;REMOTE_FILE/DIR&gt; [LOCAL_FILE/DIR]
151
- Download file or directory from Dropbox to a local folder
152
-
153
- * **delete** &lt;REMOTE_FILE/DIR&gt;
154
- Remove a remote file or directory from Dropbox
155
-
156
- * **move** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
157
- Move or rename a remote file or directory
158
-
159
- * **copy** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
160
- Copy a remote file or directory
161
-
162
- * **mkdir** &lt;REMOTE_DIR&gt;
163
- Create a remote directory on Dropbox
164
-
165
- * **list** [REMOTE_DIR]
166
- List the contents of the remote Dropbox folder
167
-
168
- * **monitor** [REMOTE_DIR] [TIMEOUT]
169
- Monitor the remote Dropbox folder for changes. If timeout is specified, at the first change event the function will return.
170
-
171
- * **share** &lt;REMOTE_FILE&gt;
172
- Get a public share link for the specified file or directory
173
-
174
- * **saveurl** &lt;URL&gt; &lt;REMOTE_DIR&gt;
175
- Download a file from an URL to a Dropbox folder directly (the file is NOT downloaded locally)
176
-
177
- * **search** &lt;QUERY&gt;
178
- Search for a specific pattern on Dropbox and returns the list of matching files or directories
179
-
180
- * **info**
181
- Print some info about your Dropbox account
182
-
183
- * **space**
184
- Print some info about the space usage on your Dropbox account
185
-
186
- * **unlink**
187
- Unlink the script from your Dropbox account
188
-
189
-
190
- **Optional parameters:**
191
- * **-f &lt;FILENAME&gt;**
192
- Load the configuration file from a specific file
193
-
194
- * **-s**
195
- Skip already existing files when download/upload. Default: Overwrite
196
-
197
- * **-d**
198
- Enable DEBUG mode
199
-
200
- * **-q**
201
- Quiet mode. Don't show progress meter or messages
202
-
203
- * **-h**
204
- Show file sizes in human readable format
205
-
206
- * **-p**
207
- Show cURL progress meter
208
-
209
- * **-k**
210
- Doesn't check for SSL certificates (insecure)
211
-
212
- * **-x &lt;FILENAME&gt;**
213
- Ignores/excludes directories or files from syncing.
214
- -x filename -x directoryname.
215
-
216
- **Examples:**
217
- ```bash
218
- ./dropbox_uploader.sh upload /etc/passwd /myfiles/passwd.old
219
- ./dropbox_uploader.sh upload *.zip /
220
- ./dropbox_uploader.sh -x .git upload ./project /
221
- ./dropbox_uploader.sh download /backup.zip
222
- ./dropbox_uploader.sh delete /backup.zip
223
- ./dropbox_uploader.sh mkdir /myDir/
224
- ./dropbox_uploader.sh upload "My File.txt" "My File 2.txt"
225
- ./dropbox_uploader.sh share "My File.txt"
226
- ./dropbox_uploader.sh list
227
- ```
228
-
229
- ## Tested Environments
230
-
231
- * GNU Linux
232
- * FreeBSD 8.3/10.0
233
- * MacOSX
234
- * Windows/Cygwin
235
- * Raspberry Pi
236
- * QNAP
237
- * iOS
238
- * OpenWRT
239
- * Chrome OS
240
- * OpenBSD
241
- * Termux
242
-
243
- If you have successfully tested this script on others systems or platforms please let me know!
244
-
245
- ## Running as cron job
246
- Dropbox Uploader relies on a different configuration file for each system user. The default configuration file location is `$HOME/.dropbox_uploader`. This means that if you setup the script with your user and then you try to run a cron job as root, it won't work.
247
- So, when running this script using cron, please keep in mind the following:
248
- * Remember to setup the script with the user used to run the cron job
249
- * Always specify the full script path when running it (e.g. /path/to/dropbox_uploader.sh)
250
- * Use always the -f option to specify the full configuration file path, because sometimes in the cron environment the home folder path is not detected correctly (e.g. -f /home/youruser/.dropbox_uploader)
251
- * My advice is, for security reasons, to not share the same configuration file with different users
252
-
253
- ## How to setup a proxy
254
-
255
- To use a proxy server, just set the **https_proxy** environment variable:
256
-
257
- **Linux:**
258
- ```bash
259
- export HTTP_PROXY_USER=XXXX
260
- export HTTP_PROXY_PASSWORD=YYYY
261
- export https_proxy=http://192.168.0.1:8080
262
- ```
263
-
264
- **BSD:**
265
- ```bash
266
- setenv HTTP_PROXY_USER XXXX
267
- setenv HTTP_PROXY_PASSWORD YYYY
268
- setenv https_proxy http://192.168.0.1:8080
269
- ```
270
-
271
- ## BASH and Curl installation
272
-
273
- **Debian & Ubuntu Linux:**
274
- ```bash
275
- sudo apt-get install bash (Probably BASH is already installed on your system)
276
- sudo apt-get install curl
277
- ```
278
-
279
- **BSD:**
280
- ```bash
281
- cd /usr/ports/shells/bash && make install clean
282
- cd /usr/ports/ftp/curl && make install clean
283
- ```
284
-
285
- **Cygwin:**
286
- You need to install these packages:
287
- * curl
288
- * ca-certificates
289
- * dos2unix
290
-
291
- Before running the script, you need to convert it using the dos2unix command.
292
-
293
-
294
- **Build cURL from source:**
295
- * Download the source tarball from http://curl.haxx.se/download.html
296
- * Follow the INSTALL instructions
297
-
298
- ## DropShell
299
-
300
- DropShell is an interactive DropBox shell, based on DropBox Uploader:
301
-
302
- ```bash
303
- DropShell v0.2
304
- The Intractive Dropbox SHELL
305
- Andrea Fabrizi - andrea.fabrizi@gmail.com
306
-
307
- Type help for the list of the available commands.
308
-
309
- andrea@Dropbox:/$ ls
310
- [D] 0 Apps
311
- [D] 0 Camera Uploads
312
- [D] 0 Public
313
- [D] 0 scripts
314
- [D] 0 Security
315
- [F] 105843 notes.txt
316
- andrea@DropBox:/ServerBackup$ get notes.txt
317
- ```
318
-
319
- ## Running as Docker Container
320
- First build the docker image:
321
- ```bash
322
- docker build https://github.com/sircuri/Dropbox-Uploader.git -f Dockerfile -t <TAG>
323
- ```
324
- or for RaspBerry:
325
- ```bash
326
- docker build https://github.com/sircuri/Dropbox-Uploader.git -f Dockerfile.pi -t <TAG>
327
- ```
328
- then, you can run it as following:
329
- ```bash
330
- docker run -i --rm --user=$(id -u):$(id -g) -v <LOCAL_CONFIG_PATH>:/config -v <YOUR_DATA_DIR_MOUNT>:/workdir <TAG> <Arguments>
331
- ```
332
- This will store the auth token information in the given local directory in `<LOCAL_CONFIG_PATH>`. To ensure access to your mounted directories it can be important to pass a UID and GID to the docker deamon (as stated in the example by the --user argument)
333
-
334
- Using the script with docker makes it also possible to run the script even on windows machines.
335
-
336
- To use a proxy, just set the mentioned environment variables via the docker `-e` parameter.
337
-
338
- ## Related projects
339
- [thunar-dropbox](https://github.com/mDfRg/Thunar-Dropbox-Uploader-plugin/tree/thunar-dropbox/plugins/thunar): A simple extension to Dropbox Uploader that provides a convenient method to share your Dropbox files with one click!
340
-
341
- ## Donations
342
-
343
- If you want to support this project, please consider donating:
344
- * PayPal: https://paypal.me/AndreaF83
345
- * BTC: 1JHCGAMpKqUwBjcT3Kno9Wd5z16K6WKPqG
1
+ # Droxul
2
+
3
+ A Command-line tool to access Dropbox for linux and GitBash
4
+
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ # Install
10
+ npm i droxul --g
11
+
12
+
13
+ ```
14
+ ### Install your Dropbox API Key
15
+ * Run droxul
16
+ ```bash
17
+ droxul
18
+ # You should be asked/being forwarded for your API key generator on the Dropbox site
19
+ ## Or go to: https://www.dropbox.com/developers/apps
20
+ # Access token:
21
+ ```
22
+
23
+ ## Usage:
24
+ ```bash
25
+ #upload
26
+ droxul upload mybackup.tar.gz /backups/mybackup.tar.gz
27
+ droxul list /
28
+ droxul download /backups/mybackup.tar.gz
29
+ # ... Type only droxul on the prompt
30
+ ```
31
+ ### Full Usage list
32
+
33
+ ```txt
34
+ Dropbox Uploader v1.0
35
+ Andrea Fabrizi - andrea.fabrizi@gmail.com
36
+ Packaged and distributed by: Guillaume Descoteaux-Isabelle,2018-2020
37
+
38
+ Usage: droxul [PARAMETERS] COMMAND...
39
+
40
+ Commands:
41
+ upload <LOCAL_FILE/DIR ...> <REMOTE_FILE/DIR>
42
+ download <REMOTE_FILE/DIR> [LOCAL_FILE/DIR]
43
+ delete <REMOTE_FILE/DIR>
44
+ move <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
45
+ copy <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
46
+ mkdir <REMOTE_DIR>
47
+ list [REMOTE_DIR]
48
+ monitor [REMOTE_DIR] [TIMEOUT]
49
+ share <REMOTE_FILE>
50
+ saveurl <URL> <REMOTE_DIR>
51
+ search <QUERY>
52
+ info
53
+ space
54
+ unlink
55
+
56
+ Optional parameters:
57
+ -f <FILENAME> Load the configuration file from a specific file
58
+ -s Skip already existing files when download/upload. Default: Overwrite
59
+ -d Enable DEBUG mode
60
+ -q Quiet mode. Don't show messages
61
+ -h Show file sizes in human readable format
62
+ -p Show cURL progress meter
63
+ -k Doesn't check for SSL certificates (insecure)
64
+ -x Ignores/excludes directories or files from syncing. -x filename -x directoryname. example: -x .git
65
+
66
+ For more info and examples, please see the README file.
67
+ ```
68
+
69
+
70
+ ---
71
+ Bellow is credit and refs
72
+ ---
73
+
74
+ ## based on: Dropbox Uploader
75
+ * from : andreafabrizi
76
+
77
+
78
+ Dropbox Uploader is a **BASH** script which can be used to upload, download, delete, list files (and more!) from **Dropbox**, an online file sharing, synchronization and backup service.
79
+
80
+ It's written in BASH scripting language and only needs **cURL**.
81
+
82
+ You can take a look to the [GiHub project page](https://github.com/andreafabrizi/Dropbox-Uploader).
83
+
84
+ **Why use this script?**
85
+
86
+ * **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).
87
+ * **Secure:** It's not required to provide your username/password to this script, because it uses the official Dropbox API v2 for the authentication process.
88
+
89
+ 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.
90
+
91
+ ## Features
92
+
93
+ * Cross platform
94
+ * Support for the official Dropbox API v2
95
+ * No password required or stored
96
+ * Simple step-by-step configuration wizard
97
+ * Simple and chunked file upload
98
+ * File and recursive directory download
99
+ * File and recursive directory upload
100
+ * Shell wildcard expansion (only for upload)
101
+ * Delete/Move/Rename/Copy/List/Share files
102
+ * Create share link
103
+ * Monitor for changes
104
+
105
+ ## Getting started
106
+
107
+ First, clone the repository using git (recommended):
108
+
109
+ ```bash
110
+ git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
111
+ ```
112
+
113
+ or download the script manually using this command:
114
+
115
+ ```bash
116
+ curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh
117
+ ```
118
+
119
+ Then give the execution permission to the script and run it:
120
+
121
+ ```bash
122
+ $chmod +x dropbox_uploader.sh
123
+ $./dropbox_uploader.sh
124
+ ```
125
+
126
+ The first time you run `dropbox_uploader`, you'll be guided through a wizard in order to configure access to your Dropbox. This configuration will be stored in `~/.dropbox_uploader`.
127
+
128
+ ## Usage
129
+
130
+ The syntax is quite simple:
131
+
132
+ ```
133
+ ./dropbox_uploader.sh [PARAMETERS] COMMAND...
134
+
135
+ [%%]: Optional param
136
+ <%%>: Required param
137
+ ```
138
+
139
+ **Available commands:**
140
+
141
+ * **upload** &lt;LOCAL_FILE/DIR ...&gt; &lt;REMOTE_FILE/DIR&gt;
142
+ Upload a local file or directory to a remote Dropbox folder.
143
+ If the file is bigger than 150Mb the file is uploaded using small chunks (default 50Mb);
144
+ in this case a . (dot) is printed for every chunk successfully uploaded and a * (star) if an error
145
+ occurs (the upload is retried for a maximum of three times).
146
+ Only if the file is smaller than 150Mb, the standard upload API is used, and if the -p option is specified
147
+ the default curl progress bar is displayed during the upload process.
148
+ The local file/dir parameter supports wildcards expansion.
149
+
150
+ * **download** &lt;REMOTE_FILE/DIR&gt; [LOCAL_FILE/DIR]
151
+ Download file or directory from Dropbox to a local folder
152
+
153
+ * **delete** &lt;REMOTE_FILE/DIR&gt;
154
+ Remove a remote file or directory from Dropbox
155
+
156
+ * **move** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
157
+ Move or rename a remote file or directory
158
+
159
+ * **copy** &lt;REMOTE_FILE/DIR&gt; &lt;REMOTE_FILE/DIR&gt;
160
+ Copy a remote file or directory
161
+
162
+ * **mkdir** &lt;REMOTE_DIR&gt;
163
+ Create a remote directory on Dropbox
164
+
165
+ * **list** [REMOTE_DIR]
166
+ List the contents of the remote Dropbox folder
167
+
168
+ * **monitor** [REMOTE_DIR] [TIMEOUT]
169
+ Monitor the remote Dropbox folder for changes. If timeout is specified, at the first change event the function will return.
170
+
171
+ * **share** &lt;REMOTE_FILE&gt;
172
+ Get a public share link for the specified file or directory
173
+
174
+ * **saveurl** &lt;URL&gt; &lt;REMOTE_DIR&gt;
175
+ Download a file from an URL to a Dropbox folder directly (the file is NOT downloaded locally)
176
+
177
+ * **search** &lt;QUERY&gt;
178
+ Search for a specific pattern on Dropbox and returns the list of matching files or directories
179
+
180
+ * **info**
181
+ Print some info about your Dropbox account
182
+
183
+ * **space**
184
+ Print some info about the space usage on your Dropbox account
185
+
186
+ * **unlink**
187
+ Unlink the script from your Dropbox account
188
+
189
+
190
+ **Optional parameters:**
191
+ * **-f &lt;FILENAME&gt;**
192
+ Load the configuration file from a specific file
193
+
194
+ * **-s**
195
+ Skip already existing files when download/upload. Default: Overwrite
196
+
197
+ * **-d**
198
+ Enable DEBUG mode
199
+
200
+ * **-q**
201
+ Quiet mode. Don't show progress meter or messages
202
+
203
+ * **-h**
204
+ Show file sizes in human readable format
205
+
206
+ * **-p**
207
+ Show cURL progress meter
208
+
209
+ * **-k**
210
+ Doesn't check for SSL certificates (insecure)
211
+
212
+ * **-x &lt;FILENAME&gt;**
213
+ Ignores/excludes directories or files from syncing.
214
+ -x filename -x directoryname.
215
+
216
+ **Examples:**
217
+ ```bash
218
+ ./dropbox_uploader.sh upload /etc/passwd /myfiles/passwd.old
219
+ ./dropbox_uploader.sh upload *.zip /
220
+ ./dropbox_uploader.sh -x .git upload ./project /
221
+ ./dropbox_uploader.sh download /backup.zip
222
+ ./dropbox_uploader.sh delete /backup.zip
223
+ ./dropbox_uploader.sh mkdir /myDir/
224
+ ./dropbox_uploader.sh upload "My File.txt" "My File 2.txt"
225
+ ./dropbox_uploader.sh share "My File.txt"
226
+ ./dropbox_uploader.sh list
227
+ ```
228
+
229
+ ## Tested Environments
230
+
231
+ * GNU Linux
232
+ * FreeBSD 8.3/10.0
233
+ * MacOSX
234
+ * Windows/Cygwin
235
+ * Raspberry Pi
236
+ * QNAP
237
+ * iOS
238
+ * OpenWRT
239
+ * Chrome OS
240
+ * OpenBSD
241
+ * Termux
242
+
243
+ If you have successfully tested this script on others systems or platforms please let me know!
244
+
245
+ ## Running as cron job
246
+ Dropbox Uploader relies on a different configuration file for each system user. The default configuration file location is `$HOME/.dropbox_uploader`. This means that if you setup the script with your user and then you try to run a cron job as root, it won't work.
247
+ So, when running this script using cron, please keep in mind the following:
248
+ * Remember to setup the script with the user used to run the cron job
249
+ * Always specify the full script path when running it (e.g. /path/to/dropbox_uploader.sh)
250
+ * Use always the -f option to specify the full configuration file path, because sometimes in the cron environment the home folder path is not detected correctly (e.g. -f /home/youruser/.dropbox_uploader)
251
+ * My advice is, for security reasons, to not share the same configuration file with different users
252
+
253
+ ## How to setup a proxy
254
+
255
+ To use a proxy server, just set the **https_proxy** environment variable:
256
+
257
+ **Linux:**
258
+ ```bash
259
+ export HTTP_PROXY_USER=XXXX
260
+ export HTTP_PROXY_PASSWORD=YYYY
261
+ export https_proxy=http://192.168.0.1:8080
262
+ ```
263
+
264
+ **BSD:**
265
+ ```bash
266
+ setenv HTTP_PROXY_USER XXXX
267
+ setenv HTTP_PROXY_PASSWORD YYYY
268
+ setenv https_proxy http://192.168.0.1:8080
269
+ ```
270
+
271
+ ## BASH and Curl installation
272
+
273
+ **Debian & Ubuntu Linux:**
274
+ ```bash
275
+ sudo apt-get install bash (Probably BASH is already installed on your system)
276
+ sudo apt-get install curl
277
+ ```
278
+
279
+ **BSD:**
280
+ ```bash
281
+ cd /usr/ports/shells/bash && make install clean
282
+ cd /usr/ports/ftp/curl && make install clean
283
+ ```
284
+
285
+ **Cygwin:**
286
+ You need to install these packages:
287
+ * curl
288
+ * ca-certificates
289
+ * dos2unix
290
+
291
+ Before running the script, you need to convert it using the dos2unix command.
292
+
293
+
294
+ **Build cURL from source:**
295
+ * Download the source tarball from http://curl.haxx.se/download.html
296
+ * Follow the INSTALL instructions
297
+
298
+ ## DropShell
299
+
300
+ DropShell is an interactive DropBox shell, based on DropBox Uploader:
301
+
302
+ ```bash
303
+ DropShell v0.2
304
+ The Intractive Dropbox SHELL
305
+ Andrea Fabrizi - andrea.fabrizi@gmail.com
306
+
307
+ Type help for the list of the available commands.
308
+
309
+ andrea@Dropbox:/$ ls
310
+ [D] 0 Apps
311
+ [D] 0 Camera Uploads
312
+ [D] 0 Public
313
+ [D] 0 scripts
314
+ [D] 0 Security
315
+ [F] 105843 notes.txt
316
+ andrea@DropBox:/ServerBackup$ get notes.txt
317
+ ```
318
+
319
+ ## Running as Docker Container
320
+ First build the docker image:
321
+ ```bash
322
+ docker build https://github.com/sircuri/Dropbox-Uploader.git -f Dockerfile -t <TAG>
323
+ ```
324
+ or for RaspBerry:
325
+ ```bash
326
+ docker build https://github.com/sircuri/Dropbox-Uploader.git -f Dockerfile.pi -t <TAG>
327
+ ```
328
+ then, you can run it as following:
329
+ ```bash
330
+ docker run -i --rm --user=$(id -u):$(id -g) -v <LOCAL_CONFIG_PATH>:/config -v <YOUR_DATA_DIR_MOUNT>:/workdir <TAG> <Arguments>
331
+ ```
332
+ This will store the auth token information in the given local directory in `<LOCAL_CONFIG_PATH>`. To ensure access to your mounted directories it can be important to pass a UID and GID to the docker deamon (as stated in the example by the --user argument)
333
+
334
+ Using the script with docker makes it also possible to run the script even on windows machines.
335
+
336
+ To use a proxy, just set the mentioned environment variables via the docker `-e` parameter.
337
+
338
+ ## Related projects
339
+ [thunar-dropbox](https://github.com/mDfRg/Thunar-Dropbox-Uploader-plugin/tree/thunar-dropbox/plugins/thunar): A simple extension to Dropbox Uploader that provides a convenient method to share your Dropbox files with one click!
340
+
341
+ ## Donations
342
+
343
+ If you want to support this project, please consider donating:
344
+ * PayPal: https://paypal.me/AndreaF83
345
+ * BTC: 1JHCGAMpKqUwBjcT3Kno9Wd5z16K6WKPqG