Exclude file

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

Exclude file

Postby testaccount@ukr.net » Fri Mar 11, 2016 7:54 pm

Hi! How to exclude files in torrent from download using only command line ?

x190
Posts: 5094
Joined: Sun Nov 30, 2008 4:59 am

Re: Exclude file

Postby x190 » Fri Mar 11, 2016 8:11 pm

Check the man pages, man. :)

transmission-daemon, transmission-remote, transmission-cli.
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

testaccount@ukr.net
Posts: 2
Joined: Fri Mar 11, 2016 7:50 pm

Re: Exclude file

Postby testaccount@ukr.net » Fri Mar 11, 2016 9:28 pm

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: 1
Joined: Mon Feb 18, 2019 6:51 pm

Re: Exclude file

Postby matp » Tue Mar 12, 2019 10:59 am

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.


Return to “General”