Dropbox Help From Scratch

Looking for @asdffdsa to help me with Dropbox
Thanks

high2u,

what can i help with?

1 Like

nice to see you again,
i want to use Dropbox
rclone v1.57.0

Im stuck at authorize and need first help here how to authorize rclone with dropbox?
http://127.0.0.1:53682/auth?state=Hgn_sjrA6i_HC79lT3NIjw
above link is not working for me,

Thanks

nice to see you again!

please post the output of rclone version

1 Like

already did in above post

run the command rclone version and post the full output.
for example,

rclone v1.57.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.10.60.1-microsoft-standard-WSL2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
1 Like

root@srv22873:~# rclone version
rclone v1.57.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-51-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none
    root@srv22873:~#

the ubuntu, is it ubuntu server or ubuntu desktop?

and need more details as to what you mean, in detail?
"Im stuck at authorize"

This is Ubuntu Server,
I installed rclone and then try to config with dropbox with below cmds

Storage> 11
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> 
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> 
Edit advanced config?
y) Yes
n) No (default)
y/n> n
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine

y) Yes (default)
n) No
y/n> n
Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone
version recommended):
        rclone authorize "dropbox"
Then paste the result.
Enter a string value. Press Enter for the default ("").
config_token> 

stuck on this point

the problem is that ubuntu server, by default, does not have a web browser.
so you need to use remote or headless machine

  1. you need to find a computer with a web browser and it needs to have rclone installed.
  2. on that computer, run rclone authorize "dropbox", that will open a web browser and you need to login to dropbox.
  3. on that computer, rclone will print the config token.
  4. on ubuntu server, paste that config token into the command line and press enter
  5. live long and prosper.
1 Like

rclone config done, thank you so much what will next step to mount dropbox?
plz check below cmd and let me know it is ok,

rclone mount rClone: /path --daemon --allow-other --poll-interval 10m --vfs-cache-mode full

and finally im able to mount it with same cmd line,
now i have it will always mounted?
what i have do to keep it always mounted?
Thanks

good, that we got it working.

need to run rclone mount at boot time.

there are a number of ways.

  1. i think the easiet way is to use cron
  2. a much more complex way is to use systemd
1 Like

@asdffdsa Great Thank you so much
I have a powerful server with a good disk space, My next question is how to save cache for long time? and any other performance recommendations ? im using Dropbox Business

Thanks Ggain

good,

these are some of the flags you want to tweak

--vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
this sets the max size of all files in the vfs file cache.
can set this value as large as free disk space. for example, 300G

--vfs-cache-max-age duration Max age of objects in the cache (default 1h0m0s)
this sets of the period of time to keep files in the vfs file cache.
can set this value to something like, for example, 6000h

1 Like

Where i have add these entries? in config file?

Thanks for a quick responce

on the command line and i would use these

--poll-interval 10s
--tpslimit 12
--tpslimit-burst 12
--dir-cache-time 5000h
rclone mount Dropbox: /www/wwwroot/videos/box --daemon --allow-other --poll-interval 10s --tpslimit 12 --tpslimit-burst 12 --dir-cache-time 5000h --vfs-cache-mode full --vfs-cache-max-age 500h --vfs-cache-max-size 900G

as i understand i have to add these in mount cmd line, please chk above cmd line and let me know is it ok,
and further tweak?
Thanks

looks good to me. give it a try