How do I copy a shared MEGA directory (by its URL) to another remote?

I have a link of a MEGA directory that I want to copy to another remote (My Google Drive). The directory contains lots of small files, so it itself is huge (~50GB) but the files are <100MB. I want to copy this directory to another remote (the Gdrive), which has sufficient storage. But rclone's host computer and my MEGA account do not have the necessary free space. How do I do this?

Clarification: The problem is that the directory on MEGA is not mine; I only have a link to a shared directory. So the directory is not on my MEGA remote. Since I do not have space on my MEGA, I can't copy the shared directory to my own MEGA account either.

Related question (no answer there): How do i rclone copy a Mega share directory?

on the host computer, rclone does not need hard drive free space.

for each file to be copied,

  1. rclone will download a chunk at a time, from mega, to the ram of your host computer
  2. rclone will upload that chunk to the remote.

you will not need any additional space on mega, as you are copying from mega

if you are copying from mega, then you do not need any additional space on mega.

what is the name of the mega remote?
what is the name of the other remote?

The problem is that the directory on MEGA is not mine; I only have a link to a shared directory. So the directory is not on my MEGA remote. Since I do not have space on my MEGA, I can't copy the shared directory to my own account either.

well,
if you do not have space in your mega, not sure what you hope to accomplish with rclone?

I want to copy the directory a remote on my Google Drive.

ok, so you want to copy a mega shared directory to gdrive?

for the mega share link you could try
https://rclone.org/http/#usage-without-a-config-file
rclone lsd --http-url https://beta.rclone.org :http:

change the url to the shared link, run the command and see what happens?

The http remote does not seem to recognize MEGA shared folders. I tested it with this small folder, it returns nothing:

rclone lsd --http-url 'https://mega.nz/folder/Pg5j0KpD#wcN0ElUbuQVN14Hx_86DgQ' :http:

for your safety, you should edit your last post, and redact the actual https address

Yeah, I edited it. There is no version history, is there?

good,
no worries, there is no version history.

that mega link is not to a static website, but a some kind of dynamic, generated on-the-fly.

Yeah, the files are encrypted, too. It definitely needs to use MEGA-specific code. We need someone who knows the rclone's MEGA backend to chime in and say if this is possible.

can you add that shared link to your mega account?

No, that link is huge. I only have enough space on my Google Drive. My MEGA account is a normal free account.

yes, i understand that you do not have free space in your mega account.

but can you add a mega shared link to your mega account.

a link is just a link, takes up no space

that share has a very small amount of data on it, just 40GB.
so why not download the entire share as a zip file to your computer
uncompress the zip file on your computer
upload the files to rclone.

It does not seem possible to me. It only has a copy option which uses up your space ...

The problem is that my own connection is very expensive and unstable, so I use my VPS for heavy network activity. My VPS only has a 50GB drive, most of which is already filled with software and the OS.

can i asked what company you use for vps and what you pay per month?

i think that since you dest is gdrive, you can rent a free vps from google.

you could create a new one-shot vps, which is charged by the hour.
for example, i use vultr


"All servers on your account are billed hourly"

I live in Iran, so most mainstream VPS providers are pretty much impossible to use. I get my VPS through an intermediary Iranian corporation, at what was around 6 dollars per month, but is now 3 dollars per month because of runaway inflation (which causes dollar to appreciate against toman). (I sure hope they keep the current pricing, but I am not holding my breath.)

What you can do is set up the shared link with megacmd and serve it as a webdav. Rclone can then copy from the webdav backend to wherever you like without using local disk space.