-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement dropbox v2 api - v1 turns off on 28 September 2017 #349
Comments
+1 |
But even with v1 there is server_modfied right? So if you are syncing from local to Dropbox and the local mod time is newer than the server_modified time you can assume you need to upload the file even if the sizes are the same? Maybe there could be an option to rclone to enable this behavior? It could also take a datetime value like "--assume-newer-date " where rclone will only force a sync if the service_modified time is <= to to make it a bit safer. This could be used by backup scripts which would record the datetime they run and then pass the datetime of the last run to --assume-newer-date each time they run. |
@paulraines68 |
So --update does work with dropbox and uses the service_modified time? |
Should do! |
Would be nice to have it implemented. |
@ncw can you please clarify the date when you are planning to integrate Dropbox v2 API into rclone? Would be helpful to know |
Also, it'd be cool if rclone could support a resume mechanism based on Dropbox API v2 cursors at some point. This would dramatically speed up incremental syncs/copies from Dropbox. |
+1 |
This is feature complete with the old version but now supports modification times.
Dropbox v2 API has just hit master! Please try this beta https://beta.rclone.org/v1.36-144-g178ff62d/ (uploaded in 15-30 mins) |
Bit of trouble building: beta now here: https://beta.rclone.org/v1.36-146-g71028e0f/ |
Hi, I tested "rclone-v1.36-146-g71028e0fβ-linux-amd64.zip", and found that $ du -sh . 2.9G . $ rclone --version rclone v1.36-146-g71028e0fβ << change a small text file >> $ time rclone copy . rudybox:Public/drops real 3m39.140s user 0m35.944s sys 0m5.420s << do it again, not changing anything >> $ time rclone copy . rudybox:Public/drops real 3m6.348s user 0m37.836s sys 0m3.120s Please check. Thank you! :) |
@alpha-rudy which rclone are you comparing it with? |
FYI, Dropbox extended the cutoff date of v1 to September 28, 2017. https://blogs.dropbox.com/developers/2017/06/updated-api-v1-deprecation-timeline/ |
Hi @ncw, I compared it with Thanks. :) |
Current beta
v1.36
Now log the transactions
So there does appear to be a bit of a slow down with the v2 API from 5s to 8s in the test above. However it uses the same number of HTTP transactions of about the same size which means it is very likely the v2 API just is slower. Does that agree with your tests @alpha-rudy |
@mchudoba thanks for the heads-up! |
Hi @ncw, Thanks for your reply. I'm sorry. I tried to follow your test but I cannot use $ rclone-v1.36 -v sync . rudybox:Public/tests 2017/07/01 15:26:47 INFO : Dropbox root 'Public/tests': Modify window not supported 2017/07/01 15:26:47 ERROR : Attempt 1/3 failed with 1 errors and: Invalid OAuth2 token. 2017/07/01 15:26:47 ERROR : Attempt 2/3 failed with 1 errors and: Invalid OAuth2 token. 2017/07/01 15:26:48 ERROR : Attempt 3/3 failed with 1 errors and: Invalid OAuth2 token. 2017/07/01 15:26:48 Failed to sync: Invalid OAuth2 token. |
There are 4000 files in the dropbox_crypt's test folder.
|
@alpha-rudy wrote
You'll need to make a new remote say @qopencc can you compare that with v1.36 too? |
@ncw rclone-v1.36-158-ga5cfdfd2-windows-amd64 ~~ rclone-v1.36-231-g575e779b-windows-amd64: There is the situation. |
@qopencc what exactly is the problem? |
rclone-v1.36-158-ga5cfdfd2-windows-amd64 ~~ rclone-v1.36-231-g575e779b-windows-amd64: There are 4000 files in the dropbox_crypt's test folder. There are 1000 files in the dropbox_crypt's test folder. rclone-v1.36-137-ga2e3af05-windows-amd64 : There are 4000 files in the dropbox_crypt's test folder. There are 1000 files in the dropbox_crypt's test folder. |
@qopencc I've done several tests and been unable to replicate this. One with 1000 files in a crypted directory and one with 2000 files in the same directory. Can you attach a log file with
Does Which bits of rclone do work? How about Can you check your network connectivity to I note this has both IPv4 and IPv6 addresses - which are you using? |
rclone-v1.36-137-ga2e3af05-windows-amd64 : There 3981 files in the same directory. rclone's ls and lsd ,copy work in the directory. rclone-v1.36-158-ga5cfdfd2-windows-amd64 ~~ rclone-v1.36-231-g575e779b-windows-amd64: There 3981 files in the same directory. rclone's ls and lsd ,copy do not work in the directory. Can you attach a log file with -vv --dump-bodies please https://drive.google.com/drive/folders/0Bz6Qqy38NFGNNEZyVjhhczVFVEk?usp=sharing Does ls work in the underlying dropbox remote? ls does not work in the underlying dropbox remote 2017/07/07 22:06:32 DEBUG : rclone: Version "v1.36-231-g575e779b" starting with parameters ["rclone" "ls" "office5678_db:(rclone_office5678_crypt_db)/esbldpslqhglbrmoumpr3ns12g/mbjh9d5icknf7q26e77sl47ptg/hb6g8mvkthf9gfi4adld8l6h6k/mbjh9d5icknf7q26e77sl47ptg/6n4lmm26dr5hqm6kque8vgaipc/32gomj1jiif66amgaumpjn1ba5g8en164irhhusu75qe6iepemo0" "-vv"] Which bits of rclone do work? How about rclone lsd dropbox_crypt:? lsd does not work 2017/07/07 22:17:53 DEBUG : rclone: Version "v1.36-231-g575e779b" starting with parameters ["rclone" "lsd" "office5678_crypt_db:(Program Files)\(portable)\(porable)\(portable)\(desktop)\(notepad++_backup)" "-vv"] Can you check your network connectivity to api.dropboxapi.com? I chedked my network connectivity to api.dropboxapi.com. I note this has both IPv4 and IPv6 addresses - which are you using? IPv4 |
@qopencc I can see the problem with that log thanks - there is a problem with the directory paging... Will post a beta when I've worked out how to fix it. |
@qopencc - I found the bug please try this beta! https://beta.rclone.org/v1.36-242-gc3dac2e3/ (uploaded in 15-30 mins) |
rclone-v1.36-242-gc3dac2e3β-linux-amd64.zip : copy and ls ,lsd work. There is not windows version in the v1.36-242-gc3dac2e3. |
@qopencc thanks for testing. I've fixed the windows build here https://beta.rclone.org/v1.36-245-gda2e2544/ (uploaded in 15-30 mins) |
rclone-v1.36-245-gda2e2544-windows-amd64 : copy and ls ,lsd work. Thank you. |
I'm going to mark this as closed now - if anyone finds any more problems please open a new issue. |
The v2 api does allow setting modification times - the
client_modified
attribute: See upload docsIt doesn't allow setting it on an existing object so it would require #348 fully useful.
On 28th June 2017 API v1 will be turned off
Update deadline extended to 28 September 2017
NB: dropbox now have an unofficial sdk for go
See also: #969
The text was updated successfully, but these errors were encountered: