Torrent Invites! Buy, Trade, Sell Or Find Free Invites, For EVERY Private Tracker! HDBits.org, BTN, PTP, MTV, Empornium, Orpheus, Bibliotik, RED, IPT, TL, PHD etc!



Results 1 to 2 of 2
Like Tree3Likes
  • 2 Post By vnsh811
  • 1 Post By d3ft0n3s

Thread: How to stop Autobrr adding torrents to the client in seedbox when all space used up

  1. #1
    Moderator
    vnsh811's Avatar
    Reputation Points
    225182
    Reputation Power
    100
    Join Date
    Sep 2012
    Posts
    4,550
    Time Online
    167 d 11 m
    Avg. Time Online
    54 m
    Mentioned
    1578 Post(s)
    Quoted
    310 Post(s)
    Liked
    2893 times
    Feedbacks
    248 (100%)

    How to stop Autobrr adding torrents to the client in seedbox when all space used up

    IMPORTANT
    • This tutorial is made considering you have basic knowledge on Unix to create and save file and you have torrent content and plex media content at the path "/home/user/files"
    • You know how to connect to the seedbox using ssh connection with any ssh client (I am using putty client)
    • Seedbox used in example is one from the seedboxes.cc with 1000 GB space


    STEPS
    1. Login to your seedbox using ssh (I am using putty client for ssh connection)
    2. Create a file in your $HOME directory (your home directory on seedbox) and give it any name you want, I used "freespace.sh"
    3. Enter below shell script code in that file and save the file:

      Code:
      #!/bin/bash
      set -e
      
      TOTAL_SPACE=980418560 # 935GB
      REQ_SPACE=52428800 #50GB
      USED_SPACE=`du -s "$HOME/files" | awk 'END{print $1}'`
      AVAILABLE_SPACE=`expr $TOTAL_SPACE - $USED_SPACE`
      if [[ $AVAILABLE_SPACE -le $REQ_SPACE ]]
      then
        exit 1
      fi
      exit 0
    4. Run below command after saving the file to make the file executable (Important):
      chmod +x ~/freespace.sh
    5. Now go to your autobrr dashboard and edit the filter where you need to add this functionality
    6. Select the "External" tab in the filter edit option and click on "Add New" (refer screenshot below)


    7. Switch on the functionality by clicking Radio button previous to the name (refer rectangle in Green color)
    8. Provide "TYPE" as "Exec" (refer arrow 1) and Name (refer arrow 2) as any name you want , I used "Full_Space"
    9. In "PATH TO EXECUTABLE" box provide full name of the shell script file with path included. Refer screenshot example given with arrow 3
    10. In "EXPECTED EXIT STATUS" box provide value as "0" (arrow 4)
    11. Finally click on save (refer rectangle in Red color) if everything is looking like the details given in the screenshot below
    12. This needs to be done in all the filters created for any indexer on autobrr.
    13. Enjoy and no more need to check available space on the seedbox every now and then




    NOTE:
    1. For safer side I have kept total space as 935GB instead of 1000GB.
    2. If your usable total space on seedbox is greater than 1000 GB then you can change the value of the variable "TOTAL_SPACE" accordingly using the formula: Total GB * 1024 * 1024.
      E.g. For total usable space of 3000 GB, total space will be 3000*1024*1024=3145728000
      So, it will look like this: TOTAL_SPACE=3145728000 # 3000GB
    3. I am checking for the minimum availability of 50 GB space to add the torrent to the client. For file size greater than 50GB you can change the value of the variable "REQ_SPACE" accordingly.
      E.g. For file size of 80GB it will be 80*1024*1024=83886080
      REQ_SPACE=83886080 #80GB


    Feel free to suggest any improvement to this tutorial and point out errors if anything is not correct
    Last edited by vnsh811Staff Icon; 04-05-2024 at 02:04 PM.
    kirill and d3ft0n3s like this.


    The day science begins to study non-physical phenomena,
    it will make more progress in one decade
    than in all the previous centuries of its existence.

    NIKOLA TESLA



  2. #2
    Banned
    d3ft0n3s's Avatar
    Reputation Points
    3962
    Reputation Power
    0
    Join Date
    May 2023
    Posts
    502
    Time Online
    23 d 21 h 11 m
    Avg. Time Online
    47 m
    Mentioned
    68 Post(s)
    Quoted
    85 Post(s)
    Liked
    220 times
    Feedbacks
    4 (100%)
    Thanks @vnsh811 this is a very useful instruction.
    I'll try to do it on the Windows.
    vnsh811 likes this.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •