Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
$ ./dropbox_uploader.sh -d list /
1.0
Linux Minerva 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
openmediavault 5.6.3-1 (Usul) \n \l
Copyright (C) 2009-2021 by Volker Theile. All rights reserved.
By default the web control panel administrator account has the
username 'admin' and password 'openmediavault'.
It is recommended that you change the password for this account
within the web control panel or using the 'omv-firstaid' CLI
command.
DIR_DST=
++ db_list_outfile ''
++ local DIR_DST=
++ local HAS_MORE=false
++ local CURSOR=
++ [[ -n '' ]]
++ OUT_FILE=/tmp/du_tmp_out_16557
++ true
++ [[ false == \t\r\u\e ]]
++ ensure_accesstoken
+++ date +%s
++ local now=1618005624
++ [[ 1618019964 > 1618005624 ]]
++ return
++ curl -X POST -L -s --show-error --globoff -i -o /tmp/du_resp_debug --header 'Authorization: Bearer sl.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXI' --header 'Content-Type: application/json' --data '{"path": "","include_media_info": false,"include_deleted": false,"include_has_explicit_shared_members": false}' https://api.dropboxapi.com/2/files/list_folder
++ check_http_response
++ CODE=0
++ case $CODE in
++ grep -q '^HTTP/[12]. 400' /tmp/du_resp_debug
+++ sed -n -e 's/{"error": "([^"])"}/\1/p' /tmp/du_resp_debug
++ ERROR_MSG=
++ case $ERROR_MSG in
+++ sed -n 's/."has_more": ([a-z])./\1/p' /tmp/du_resp_debug
++ HAS_MORE=
+++ sed -n 's/."cursor": "([^"])"./\1/p' /tmp/du_resp_debug
++ CURSOR=
++ grep -q '^HTTP/[12].* 200' /tmp/du_resp_debug
++ return
OUT_FILE=
'[' -z '' ']'
print 'FAILED\n'
[[ 0 == 0 ]]
echo -ne 'FAILED\n'
FAILED
ERROR_STATUS=1
return
remove_temp_files
[[ 1 == 0 ]]
[[ 1 -ne 0 ]]
echo 'Some error occured. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_debug.'
Some error occured. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_debug.
exit 1
I did all setup but nothing seems to work...
any idea ?
Rpi4 / Raspbian
$ ./dropbox_uploader.sh -d list / 1.0 Linux Minerva 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux openmediavault 5.6.3-1 (Usul) \n \l Copyright (C) 2009-2021 by Volker Theile. All rights reserved.
By default the web control panel administrator account has the username 'admin' and password 'openmediavault'. It is recommended that you change the password for this account within the web control panel or using the 'omv-firstaid' CLI command.
For more information regarding this appliance, please visit the web site: https://www.openmediavault.org
I did all setup but nothing seems to work... any idea ?