tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[Q] Resume download regardless of files downloaded

Open euphoria360 opened this issue 1 year ago • 3 comments

Proposal

I'm trying to use tdl on my VPS to download files from a specific channel. That Channel has around 1000 files with a total of 100GB in size.

The problem is my server has about 20GB of free space and I can't download the whole Channel in one go. I tried to run tdl and when it downloaded about 15GB, stop it. then download files it has downloaded and delete them from VPS. then run the command again to resume.

I thought using --continue would work, but it seems it's not.

This is the command I run: /opt/tdl/tdl --storage type=file,path=/opt/tdl/data/tdl.json dl --limit 2 --ntp pool.ntp.org --threads 8 --continue --skip-same --file /opt/tdl/chat_ids/1234.json --dir /opt/tdl/downloads/1234

Is there a way to solve this?

Background

Downloading big channels on hosts with limited storage.

Workarounds

No. I couldn't find any yet.

euphoria360 avatar Nov 20 '24 19:11 euphoria360

I agree. I have the same problem where I have to move files from the Downloaded folder to somewhere else to FREE UP more space.

But then TDL redownloads already downloaded files.

If PostgreSQL can be used for savingmetadata about all the downloaded files. The problem will be fixed.

nmnm121212 avatar Feb 03 '25 15:02 nmnm121212

hey can you help me out with setting up? im a newbie

titularmonarch avatar Feb 22 '25 16:02 titularmonarch

I agree. I have the same problem where I have to move files from the Downloaded folder to somewhere else to FREE UP more space.

But then TDL redownloads already downloaded files.

If PostgreSQL can be used for savingmetadata about all the downloaded files. The problem will be fixed.

how did you change the database type?

euphoria360 avatar Mar 07 '25 18:03 euphoria360