Skip to content

Instantly share code, notes, and snippets.

@sasapurin
Forked from bryanjswift/.rtorrent.rc
Last active January 6, 2022 23:19
Show Gist options
  • Select an option

  • Save sasapurin/a193b58c27e2fa6b201d3c198888a6c7 to your computer and use it in GitHub Desktop.

Select an option

Save sasapurin/a193b58c27e2fa6b201d3c198888a6c7 to your computer and use it in GitHub Desktop.

Revisions

  1. sasapurin revised this gist Jul 13, 2019. 1 changed file with 28 additions and 28 deletions.
    56 changes: 28 additions & 28 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -3,66 +3,66 @@
    # uncomment the options you wish to enable.

    # Maximum and minimum number of peers to connect to per torrent.
    min_peers = 1
    max_peers = 100
    throttle.min_peers.normal = 1
    throttle.max_peers.normal.set = 100

    # Same as above but for seeding completed torrents (-1 = same as downloading)
    min_peers_seed = 1
    max_peers_seed = 50
    throttle.min_peers.seed.set = 1
    throttle.max_peers.seed.set = 50

    # Maximum number of uploads single torrent may use
    max_uploads = 10
    throttle.max_uploads.set = 10

    # Maximum number of simultaneous downloads
    max_downloads_global = 10
    throttle.max_downloads.global.set = 10
    # Maximum number of simultaneous uploads
    max_uploads_global = 20
    throttle.max_uploads.global.set = 20

    # Global upload and download rate in KiB. "0" for unlimited.
    download_rate = 0
    upload_rate = 300
    throttle.global_down.max_rate.set_kb = 0
    throttle.global_up.max_rate.set_kb = 300

    # Default directory to save the downloaded torrents.
    directory = ./rtorrent/leeching
    directory.default.set = ./rtorrent/leeching

    # Default session directory. Make sure you don't run multiple instance
    # of rtorrent using the same session directory. Perhaps using a
    # relative path?
    session = ~/rtorrent/.rtcache
    session.path.set = ~/rtorrent/.rtcache

    # Watch a directory for new torrents, and stop those that have been
    # deleted.
    schedule = watch_directory,5,5,load.start=~/rtorrent/rtactive/*.torrent
    schedule = tied_directory,6,5,start_tied=
    schedule = untied_directory,7,5,stop_untied=
    schedule2 = watch_directory,5,5,load.start=~/rtorrent/rtactive/*.torrent
    schedule2 = tied_directory,6,5,start_tied=
    schedule2 = untied_directory,7,5,stop_untied=

    # Close torrents when diskspace is low.
    schedule = low_diskspace,5,60,close_low_diskspace=2000M
    schedule2 = low_diskspace,5,60,close_low_diskspace=2000M

    # Periodically save session data
    schedule = session_save,240,300,session_save=
    schedule2 = session.save,240,300,session.save=

    # Enable the default ratio group.
    ratio.enable=
    group.seeding.ratio.enable=
    # Change the limits, the defaults should be sufficient.
    # Upload to a minimum ratio of 4.0
    ratio.min.set=400
    group2.seeding.ratio.min.set=400
    # Upload to a maximum ratio of 20.0
    ratio.max.set=2000
    group2.seeding.ratio.max.set=2000
    # Upload a minimum of 250 MB
    ratio.upload.set=250M
    group2.seeding.ratio.upload.set=250M

    # When seeding ratio is reached close the torrent
    method.set = group.seeding.ratio.command, d.close=

    # Move files to ./rtorrent/unsorted when download completes
    method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,~/rtorrent/unsorted/;d.set_directory=~/rtorrent/unsorted/"
    method.set_key = event.download.finished,move_complete,"execute2=mv,-n,$d.base_path=,~/rtorrent/unsorted/;d.directory.set=~/rtorrent/unsorted/"

    # Port range to use for listening.
    port_range = 33101-33199
    network.port_range.set = 33101-33199

    # Start opening ports at a random position within the port range.
    port_random = yes
    network.port_random.set = yes

    # Encryption options, set to none (default) or any combination of the following:
    # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
    @@ -71,7 +71,7 @@ port_random = yes
    # outgoing connections but retries with encryption if they fail, preferring
    # plaintext to RC4 encryption after the encrypted handshake
    #
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext
    protocol.encryption.set = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Sort the main view by ratio
    view.sort_current = main,greater=d.ratio=
    @@ -95,10 +95,10 @@ view.sort_new = leeching,less=d.name=
    view.filter = active,d.peers_connected=
    view.sort = active

    schedule = sort_main,11,5,view.sort=main
    schedule = sort_seeding,12,5,view.sort=seeding
    schedule = sort_leeching,13,5,view.sort=leeching
    schedule = sort_active,14,5,view.sort=active
    schedule2 = sort_main,11,5,view.sort=main
    schedule2 = sort_seeding,12,5,view.sort=seeding
    schedule2 = sort_leeching,13,5,view.sort=leeching
    schedule2 = sort_active,14,5,view.sort=active

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
  2. sasapurin revised this gist Jul 13, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -79,9 +79,9 @@ view.sort_new = main,less=d.ratio=
    view.sort = main

    # Sort the seeding view by the upload rate and only show torrents with peers
    view.sort_current = seeding,greater=d.get_up_rate=
    view.sort_current = seeding,greater=d.up.rate=
    view.filter = seeding,"and=d.complete=,d.peers_connected="
    view.sort_new = seeding,less=d.get_up_rate=
    view.sort_new = seeding,less=d.up.rate=
    view.sort = seeding

    # Sort the leeching view by name
  3. sasapurin revised this gist Jul 13, 2019. 1 changed file with 14 additions and 15 deletions.
    29 changes: 14 additions & 15 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    # This is an example resource file for rTorrent. Copy to
    # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
    # uncomment the options you wish to enable.
    @@ -24,16 +23,16 @@ download_rate = 0
    upload_rate = 300

    # Default directory to save the downloaded torrents.
    directory = ./leeching
    directory = ./rtorrent/leeching

    # Default session directory. Make sure you don't run multiple instance
    # of rtorrent using the same session directory. Perhaps using a
    # relative path?
    session = ./.rtorrent
    session = ~/rtorrent/.rtcache

    # Watch a directory for new torrents, and stop those that have been
    # deleted.
    schedule = watch_directory,5,5,load_start=./rtactive/*.torrent
    schedule = watch_directory,5,5,load.start=~/rtorrent/rtactive/*.torrent
    schedule = tied_directory,6,5,start_tied=
    schedule = untied_directory,7,5,stop_untied=

    @@ -54,10 +53,10 @@ ratio.max.set=2000
    ratio.upload.set=250M

    # When seeding ratio is reached close the torrent
    system.method.set = group.seeding.ratio.command, d.close=
    method.set = group.seeding.ratio.command, d.close=

    # Move files to ./unsorted when download completes
    system.method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,./unsorted/;d.set_directory=./unsorted/"
    # Move files to ./rtorrent/unsorted when download completes
    method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,~/rtorrent/unsorted/;d.set_directory=~/rtorrent/unsorted/"

    # Port range to use for listening.
    port_range = 33101-33199
    @@ -75,25 +74,25 @@ port_random = yes
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Sort the main view by ratio
    view.sort_current = main,greater=d.get_ratio=
    view.sort_new = main,less=d.get_ratio=
    view.sort_current = main,greater=d.ratio=
    view.sort_new = main,less=d.ratio=
    view.sort = main

    # Sort the seeding view by the upload rate and only show torrents with peers
    view.sort_current = seeding,greater=d.get_up_rate=
    view.filter = seeding,"and=d.get_complete=,d.get_peers_connected="
    view.filter = seeding,"and=d.complete=,d.peers_connected="
    view.sort_new = seeding,less=d.get_up_rate=
    view.sort = seeding

    # Sort the leeching view by name
    view.sort_current = leeching,greater=d.get_name=
    view.sort_new = leeching,greater=d.get_name=
    view.sort_current = leeching,greater=d.name=
    view.sort_new = leeching,greater=d.name=
    view.sort = leeching

    # Filter the active view by connected peers
    view.sort_current = active,less=d.get_name=
    view.sort_new = leeching,less=d.get_name=
    view.filter = active,d.get_peers_connected=
    view.sort_current = active,less=d.name=
    view.sort_new = leeching,less=d.name=
    view.filter = active,d.peers_connected=
    view.sort = active

    schedule = sort_main,11,5,view.sort=main
  4. sasapurin revised this gist Jul 13, 2019. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +0,0 @@
    tracker
    |-- leeching
    |-- rtactive
    |-- sorted
    |-- torrents
    |-- unsorted
  5. @bryanjswift bryanjswift revised this gist Jan 14, 2012. 1 changed file with 28 additions and 6 deletions.
    34 changes: 28 additions & 6 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@

    # This is an example resource file for rTorrent. Copy to
    # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
    # uncomment the options you wish to enable.
    @@ -14,7 +15,7 @@ max_peers_seed = 50
    max_uploads = 10

    # Maximum number of simultaneous downloads
    max_downloads_global = 3
    max_downloads_global = 10
    # Maximum number of simultaneous uploads
    max_uploads_global = 20

    @@ -44,7 +45,6 @@ schedule = session_save,240,300,session_save=

    # Enable the default ratio group.
    ratio.enable=

    # Change the limits, the defaults should be sufficient.
    # Upload to a minimum ratio of 4.0
    ratio.min.set=400
    @@ -74,10 +74,32 @@ port_random = yes
    #
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Sort the seeding view by the upload rate
    view_sort_current = seeding,greater=d.get_up_rate=
    view_sort_new = seeding,greater=d.get_up_rate=
    schedule = sort,5,2,view_sort=seeding
    # Sort the main view by ratio
    view.sort_current = main,greater=d.get_ratio=
    view.sort_new = main,less=d.get_ratio=
    view.sort = main

    # Sort the seeding view by the upload rate and only show torrents with peers
    view.sort_current = seeding,greater=d.get_up_rate=
    view.filter = seeding,"and=d.get_complete=,d.get_peers_connected="
    view.sort_new = seeding,less=d.get_up_rate=
    view.sort = seeding

    # Sort the leeching view by name
    view.sort_current = leeching,greater=d.get_name=
    view.sort_new = leeching,greater=d.get_name=
    view.sort = leeching

    # Filter the active view by connected peers
    view.sort_current = active,less=d.get_name=
    view.sort_new = leeching,less=d.get_name=
    view.filter = active,d.get_peers_connected=
    view.sort = active

    schedule = sort_main,11,5,view.sort=main
    schedule = sort_seeding,12,5,view.sort=seeding
    schedule = sort_leeching,13,5,view.sort=leeching
    schedule = sort_active,14,5,view.sort=active

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
  6. @bryanjswift bryanjswift revised this gist Jan 3, 2012. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,13 @@ max_peers = 100
    min_peers_seed = 1
    max_peers_seed = 50

    # Maximum number of simultanious uploads per torrent.
    # Maximum number of uploads single torrent may use
    max_uploads = 10

    # Maximum number of simultaneous downloads
    max_downloads_global = 3
    max_uploads_global = 10
    # Maximum number of simultaneous uploads
    max_uploads_global = 20

    # Global upload and download rate in KiB. "0" for unlimited.
    download_rate = 0
    @@ -45,14 +46,17 @@ schedule = session_save,240,300,session_save=
    ratio.enable=

    # Change the limits, the defaults should be sufficient.
    # Upload to a minimum ratio of 4.0
    ratio.min.set=400
    # Upload to a maximum ratio of 20.0
    ratio.max.set=2000
    # Upload a minimum of 250 MB
    ratio.upload.set=250M

    # When seeding ratio is reached close the torrent
    system.method.set = group.seeding.ratio.command, d.close=

    # Move files around when download completes
    # Move files to ./unsorted when download completes
    system.method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,./unsorted/;d.set_directory=./unsorted/"

    # Port range to use for listening.
    @@ -70,6 +74,11 @@ port_random = yes
    #
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Sort the seeding view by the upload rate
    view_sort_current = seeding,greater=d.get_up_rate=
    view_sort_new = seeding,greater=d.get_up_rate=
    schedule = sort,5,2,view_sort=seeding

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
    # "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
  7. @bryanjswift bryanjswift revised this gist Dec 28, 2011. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    tracker
    |-- leeching
    |-- rtactive
    |-- sorted
    |-- torrents
    |-- unsorted
  8. @invalid-email-address Anonymous created this gist Dec 28, 2011.
    86 changes: 86 additions & 0 deletions .rtorrent.rc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,86 @@
    # This is an example resource file for rTorrent. Copy to
    # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
    # uncomment the options you wish to enable.

    # Maximum and minimum number of peers to connect to per torrent.
    min_peers = 1
    max_peers = 100

    # Same as above but for seeding completed torrents (-1 = same as downloading)
    min_peers_seed = 1
    max_peers_seed = 50

    # Maximum number of simultanious uploads per torrent.
    max_uploads = 10

    # Maximum number of simultaneous downloads
    max_downloads_global = 3
    max_uploads_global = 10

    # Global upload and download rate in KiB. "0" for unlimited.
    download_rate = 0
    upload_rate = 300

    # Default directory to save the downloaded torrents.
    directory = ./leeching

    # Default session directory. Make sure you don't run multiple instance
    # of rtorrent using the same session directory. Perhaps using a
    # relative path?
    session = ./.rtorrent

    # Watch a directory for new torrents, and stop those that have been
    # deleted.
    schedule = watch_directory,5,5,load_start=./rtactive/*.torrent
    schedule = tied_directory,6,5,start_tied=
    schedule = untied_directory,7,5,stop_untied=

    # Close torrents when diskspace is low.
    schedule = low_diskspace,5,60,close_low_diskspace=2000M

    # Periodically save session data
    schedule = session_save,240,300,session_save=

    # Enable the default ratio group.
    ratio.enable=

    # Change the limits, the defaults should be sufficient.
    ratio.min.set=400
    ratio.max.set=2000
    ratio.upload.set=250M

    # When seeding ratio is reached close the torrent
    system.method.set = group.seeding.ratio.command, d.close=

    # Move files around when download completes
    system.method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,./unsorted/;d.set_directory=./unsorted/"

    # Port range to use for listening.
    port_range = 33101-33199

    # Start opening ports at a random position within the port range.
    port_random = yes

    # Encryption options, set to none (default) or any combination of the following:
    # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
    #
    # The example value allows incoming encrypted connections, starts unencrypted
    # outgoing connections but retries with encryption if they fail, preferring
    # plaintext to RC4 encryption after the encrypted handshake
    #
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
    # "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
    # The default is "off". For DHT to work, a session directory must be defined.
    #
    #dht = auto

    # UDP port to use for DHT.
    #
    #dht_port = 6881

    # Enable peer exchange (for torrents not marked private)
    #
    #peer_exchange = yes