How to copy a single file from a http remote to a drive endpoint

Hello
Normally to copy a http directory to a drive endpoint I do:
rclone copy --http-url [HTTP DIRECTORY] :http: drive: -P
But I can’t do the same for
rclone copy --http-url https://domain.tld/file.txt :http: drive: -P since it fails instantly
How can this be archieved?
Thanks

I think you can do this. I haven’t tested it.

rclone copy --http-url https://domain.tld :http: drive: -P --include=/file.txt

Doesn’t work, has the same error

What’s the error

no error, running with -P just results in a:
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 2.1s

Run with -vv debug

^[[A^[[2K^[[0G^[[2K2019-03-31 14:34:21 INFO : Google drive root ‘newdir’: Waiting for checks to finish
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 700ms
^[[A^[[2K^[[A^[[2K^[[A^[[2K^[[A^[[2K^[[A^[[2K^[[0G^[[2K2019-03-31 14:34:21 INFO : Google drive root ‘newdir’: Waiting for transfers to finish
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 700ms^[[2K^[[A^[[2K^[[A^[[2K^[[A^[[2K^[[A^[[2K^[[0GTransferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 700ms
2019/03/31 14:34:20 DEBUG : rclone: Version “v1.46” starting with parameters [“rclone” “-vv” “copy” “–http-url” “https:/domain.tld” “:http:” “drive:newdir” “-P”
“–include=/file.txt”]
2019/03/31 14:34:20 DEBUG : Using config file from “/home/username/.rclone.conf”
2019/03/31 14:34:21 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 700ms

2019/03/31 14:34:21 DEBUG : 6 go routines active
2019/03/31 14:34:21 DEBUG : rclone: Version “v1.46” finishing with parameters [“rclone” “-vv” “copy” “–http-url” “https:/domain.tld” “:http:” “drive:newdir” “-P”
“–include=/file.txt”]

Is it possible to share the HTML of that page? Seeing the source might help someone answer it.

Sure. And sorry for the delay… https://archive.omar.yt/youtubeannotations.tar.zstd

Looking at the root of that page it doesn’t look like a file listing which the http backend needs.

If you just want to copy a single file then try

rclone copyurl  -P https://archive.omar.yt/youtubeannotations.tar.zstd drive:youtubeannotations.tar.zstd
1 Like

thanks!! it works

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.