URL upload to onedrive & use it as source for stream

-v is a logging flag for INFO, -vv for DEBUG

It didn't work. You are correct that shell issue on os. Is there way to fix it up..?

Update -->

Tried on windows laptop using WSL facility and it is working.

Issue --> It is not working on oracle cloud instances running ubuntu.

well, that first command was run on windows, and this command was run on linux, both times it worked

user01@wsl01:~$ rclone copy ":http,url='https://downloads.rclone.org':rclone-current-linux-amd64.zip" onedrive: -v
2021/12/24 15:13:08 INFO  : rclone-current-linux-amd64.zip: Copied (new)
2021/12/24 15:13:08 INFO  :
Transferred:       13.742 MiB / 13.742 MiB, 100%, 1.963 MiB/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         8.0s
rclone-v1.57.0-windows-amd64>rclone copy ":http,url='https://downloads.rclone.org':rclone-current-windows-amd64.zip" onedrive: -v
2021/12/25 01:46:39 INFO  : rclone-current-windows-amd64.zip: Copied (new)
2021/12/25 01:46:39 INFO  :
Transferred:       13.774 MiB / 13.774 MiB, 100%, 666.904 KiB/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:        23.2s

A quick doubt does this facility uses internet of ours. I means from url - cloud storage copy process.

I am in doubt as I show some network traffic for both down and up for the file.

sorry, not understanding.

Let us assume a scenario where I download the same file rom URL to my local pc which I am currently working on.

Then upload the same file to onedrive cloud.

So, in this attempt we will invest internet data for both download (web to local pc) then upload the same to cloud storage.(in my case to onedrive).

But I am asking whether this RCLONE COPY uses same attempt..?

Or it goes directly from URL server to onedrive cloud storage...?

Correct. I am just asking as I am not aware onto these concepts.

that is correct

Okay. Is there any other command in rclone which does clones directly without investing data..?

As I have learned how to used rclone copy for single.

Any possibility for multiple url in single command...?


Example of URL :


https://universal-cloud.me/0:/Downloads/Aranyak.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x265.%5BHashMiner%5D/Aranyak.S01E01.1080p.NF.10bit.DDP.5.1.x265.[HashMiner].mkv
https://universal-cloud.me/0:/Downloads/Aranyak.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x265.%5BHashMiner%5D/Aranyak.S01E02.1080p.NF.10bit.DDP.5.1.x265.[HashMiner].mkv
https://universal-cloud.me/0:/Downloads/Aranyak.S01.COMPLETE.1080p.NF.10bit.DDP.5.1.x265.%5BHashMiner%5D/Aranyak.S01E03.1080p.NF.10bit.DDP.5.1.x265.[HashMiner].mkv

Why I am asking this concept. Coz I have jupyter notebook file which can be updated to google colab & it does that.

Rclone mounts the cloud storage as filesystem. Then wget / curl uses download link to directly transfer happens from URL to cloud storage.

No investment of data bandwidth.

Note :- But that is web based & it takes time for large files. And unfortunately logout issues too occurs.

nothing rclone can do about that.
rclone is great but not --magic

if you download a file, that uses bandwidth
if you upload a file, that uses bandwidth.

possible workaround:
if the dest is onedrive, perhaps use a vm from azure, no charge for ingress.

or rent/pay for a seedbox

From ubuntu terminal below rclone commands shows info. But need to understand how to get them show on emby server using rclone mount.


rclone config show
[onedrive]
type = onedrive
token = mytoken
drive_id = mydrive_id
drive_type = business



rclone ls onedrive:
1388909500 83 (2021).mkv
4964988456 Matrix (2021).mkv


These below commands have used for emby :-


---
version: "2.1"
services:
  emby:
    image: lscr.io/linuxserver/emby
    container_name: emby
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - /mnt/emby:/config
      - /mnt/cloud:/media
    ports:
      - 8096:8096
      - 8920:8920 #optional
    restart: unless-stopped

that is documented at

Need help on mounting onedrive as local drive on windows 10 machine. Then how to point it to emby server for access.

where do you want to run the rclone mount command?

  • on the host
  • inside the docker image

On the host can be understood as windows 10 machine / ubuntu vm running on oracle cloud..?

On oracle cloud will be better. And inside the docker image.

as i shared, that is documented here

# perform mount inside Docker container, expose result to host
mkdir -p ~/data/mount
docker run --rm \
    --volume ~/.config/rclone:/config/rclone \
    --volume ~/data:/data:shared \
    --user $(id -u):$(id -g) \
    --volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
    --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
    rclone/rclone \
    mount dropbox:Photos /data/mount &

In this dropbox is the name of rclone remote..? I am asking for my understanding.

I have used this code.



[Unit]
Description= RClone Mount Service
After=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/rclone mount \
--config=/home/ubuntu/.config/rclone/rclone.conf \
--user-agent=rajeshsahoo \
--allow-other \
--timeout=1h \
--poll-interval=15s \
--dir-cache-time=1000h \
--cache-dir=/mnt/rclone/cache/onemedia \
--vfs-cache-mode=full \
--vfs-cache-max-size=20G \
--vfs-cache-max-age=12h \
mount onedrive: /mnt/cloud
ExecStop=/bin/fusermount -uz /mnt/cloud
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target