Tips & Tricks

Some basic tips and tricks for modifying stuff afterwards. These aren’t needed but do add some QOL improvements. Got suggestions? /r/hoardingme!

Removing basic auth from Sonarr/Radarr/Couchpotato.

Obviously don’t do this if you haven’t yet setup a login form yet. Once you’ve done so, you can modify sonarr.conf (within /etc/apache2/sites-enabled) like so;

<Location /sonarr>
ProxyPass http://localhost:8989/sonarr
ProxyPassReverse http://localhost:8989/sonarr
AllowOverride All
Require all granted

And for radarr.conf;

<Location /radarr>
ProxyPass http://localhost:7878/radarr
ProxyPassReverse http://localhost:7878/radarr
AllowOverride All
Require all granted

Same for couchpotato.conf;

<Location /couchpotato>
ProxyPass http://localhost:5050/couchpotato
ProxyPassReverse http://localhost:5050/couchpotato
AllowOverride All
Require all granted

Lastly, same for plexpy.conf;

<Location /plexpy>
ProxyPass http://localhost:8181/plexpy
ProxyPassReverse http://localhost:8181/plexpy
AllowOverride All
Require all granted

Ratio Groups in rtorrent

Via ratio groups we can instruct rtorrent to automatically delete torrents when they reach X amount of time seeded, or X ratio seeded.

In this image in the bottom right you can set a default also, for example creating one ratio group for 7 days long and setting it as default.

Backing up your entire system

If you want to backup your entire system in case something goes wrong, you can use a script like this; (/home/scripts/backup.sh) chmod a+x also.

#This tars system and uploads to gd.
#Check excludes.
TIME=`date +%b-%d-%y`

tar -cvpzf $DESDIR/$FILENAME $SRCDIR --exclude=/home/backups --exclude=/proc --exclude=/home/YOUR-RTORRENT-USERNAME --exclude =/tmp --exclude=/mnt --exclude=/sys --exclude=/dev --exclude=/run --exclude=/home/plex/m-gd --exclude=/home/plex/tv-gd --exclude=/home/plex --exclude=/home/plex/tv-r --exclude=/home/plex/m-r;
/usr/sbin/rclone move /home/backups/ gd:/backups/
#Delete any remnants
#find /home/backups/ -mmin +1440 -delete

Note, this uploads the backups unencrypted over the unencrypted remote. This is due in part to two reason, 1) precautionary and 2) laziness on my part. You can create another crypt remote to another folder and change the remote in the script to upload them encrypted also. There’s also a find command at the end that can be uncommented if you also want it to look for old backups to be deleted but it shouldn’t be necessary as we’re using rclone move. Modify it as you see fit to exclude any additional folders – via the line beginning with exclude= and with the format --exclude=/path/to/folder.

Then you’d just add a crontab entry like usual, crontab -e and 0 4 * * * /home/scripts/backup.sh to automate it for 4am every night.

Fixing the plex link within Quickbox

I’ve been tipped off on a much better, persistent fix than the quick and dirty one I posted on reddit. nano /srv/rutorrent/home/custom/url.override.php and inside which paste;

  $btsyncURL = "https://" . $_SERVER['HTTP_HOST'] . ":8888/gui/";
  $cpURL = "https://" . $_SERVER['HTTP_HOST'] . "/couchpotato";
  $csfURL = "https://" . $_SERVER['HTTP_HOST'] . ":3443";
  if ($dwssl == "true") { $dwURL = "https://" . $_SERVER['HTTP_HOST'] . ":$dwport"; }
  if ($dwssl == "false") { $dwURL = "http://" . $_SERVER['HTTP_HOST'] . ":$dwport"; }
  $embyURL = "https://" . $_SERVER['HTTP_HOST'] . "/emby";
  $jackettURL = "https://" . $_SERVER['HTTP_HOST'] . "/jackett/Admin/Dashboard";
  $nextcloudURL = "https://" . $_SERVER['HTTP_HOST'] . "/nextcloud";
  $nzbhydraURL = "https://" . $_SERVER['HTTP_HOST'] . "/nzbhydra";
  $plexURL = "https://plex." . $_SERVER['HTTP_HOST'];
  $plexpyURL = "https://" . $_SERVER['HTTP_HOST'] . "/plexpy";
  $ombiURL = "https://" . $_SERVER['HTTP_HOST'] . "/ombi";
  $pyloadURL = "http://" . $_SERVER['HTTP_HOST'] . ":8000";
  $radarrURL = "https://" . $_SERVER['HTTP_HOST'] . "/radarr";
  $rapidleechURL = "https://" . $_SERVER['HTTP_HOST'] . "/rapidleech";
  $sabnzbdURL = "https://" . $_SERVER['HTTP_HOST'] . "/sabnzbd";
  $sickrageURL = "https://" . $_SERVER['HTTP_HOST'] . "/sickrage";
  $sonarrURL = "https://" . $_SERVER['HTTP_HOST'] . "/sonarr";
  $subsonicURL = "https://" . $_SERVER['HTTP_HOST'] . "/subsonic";
  $syncthingURL = "https://" . $_SERVER['HTTP_HOST'] . "/syncthing/";
  if ($zssl == "true") { $zncURL = "https://" . $_SERVER['HTTP_HOST'] . ":$zport"; }
  if ($zssl == "false") { $zncURL = "http://" . $_SERVER['HTTP_HOST'] . ":$zport"; }

Thanks for the tipoff, added you to the credits page too!