Exclude file

Discussion of Transmission that doesn't fit in the other categories
Post Reply
testaccount@ukr.net
Posts: 2
Joined: Fri Mar 11, 2016 7:50 pm

Exclude file

Post by testaccount@ukr.net »

Hi! How to exclude files in torrent from download using only command line ?
testaccount@ukr.net
Posts: 2
Joined: Fri Mar 11, 2016 7:50 pm

Re: Exclude file

Post by testaccount@ukr.net »

I mean the situation when torrent file contains number of files for downloading. And I could not resolve this case using man pages.
matp
Posts: 2
Joined: Mon Feb 18, 2019 6:51 pm

Re: Exclude file

Post by matp »

Sorry, for responding to such an old post...but I had the same question, this came up high in google search results and was unanswered.

I didn't spot this immediately in the help either, but it is there.

Code: Select all

# transmission-remote --version
transmission-remote 2.94 (0)
# transmission-remote -h
...
  -f   --files                              List the current torrent(s)' files
  -g   --get                    <files>     Mark files for download
  -G   --no-get                 <files>     Mark files for not downloading
  -if  --info-files                         List the current torrent(s)' files
...
So first, list your torrents to get the torrent ID you are interested in.

Code: Select all

# transmission-remote --list
ID     Done       Have  ETA           Up    Down  Ratio  Status       Name
  42     1%       1 MB  11 hrs       0.0    81.0    0.0  Downloading  Some-Torrent
Let's say for this example it is 42.

List the files included in that torrent. They will show up a little while after you add the torrent...assuming there are sufficient seeders to provide the details.

Code: Select all

# transmission-remote -t 42 -if
-t selects the torrent. -if (or -f) displays the files associated with that torrent. If you don't see any, wait a while and try again.

From the list of files determine which ones you want to exclude (or include). To exclude files with IDs 5 through 12 from torrent 42 you can do:

Code: Select all

# transmission-remote -t 42 --no-get 5-12
If you list the files for torrent 42 again you should see that 5-12 are marked for no download.
Post Reply