What is the problem you are having with rclone?
I thought that resumable uploads were supported by rclone. At least that's what I had in mind when I skimmed through the source (backend/drive/upload.go). However I wanted to test if resumable uploads actually works. So I started uploading a ~4GB file and killed the rclone command with CTRL-C. Using the exact same command just restarted uploading from start. Then I thought maybe it is designed to only work when the process is still active. So (unfortunately) by coincidence my connection dropped this night. I have no logs or so a I reused the terminals without copying the log. It seems there were some retries but apparently there is some limit for that?
Now I wonder how resumable uploads are actually implemented so I will have to look into the source in depth. I checked the drive documentation before. You just have to do a POST with query parameter
uploadType=resumable
Then you will get some
upload_id=<STRING>
which is valid for 1 week according to docs (no clue if that can be refreshed or so). Then you have to use PUT to update existing files. In my understanding using Content-Range (also used when doing multi-part uploads) google will concat that according to given value of Content-Range to the existing file?! So we just need to store that upload_id somewhere (e.g. in local folder and in the cloud drive at the specified position)
I would have tagged this thread with 'Help and Support' and 'Dev Discussions' but am not familiar with discourse.
What is your rclone version (output from rclone version
)
rclone v1.52.2
- os/arch: windows/amd64
- go version: go1.14.4
Which OS you are using and how many bits (eg Windows 7, 64 bit)
see above
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -vv copy <local_folder> <crypt_drive:/local_folder>
The rclone config contents with secrets removed.
Shouldn't be needed but can be provided on request.
A log from the command with the -vv
flag
Stated in first section.