Hardlinking Guide - Cloudbox/Community GitHub Wiki
Note from author: I accept zero responsibility for if this breaks your setup. Works fine for me. Results may vary. Only issue I've seen is Radarr sometimes complains about a missing intermediate directory.
Before you start, clear all folders & files from /mnt/local/downloads/ and make sure NZBGet / rutorrent have no queued files in them.
cd ~/cloudbox- Set the following...
nano settings.yml
downloads:
nzbs: /mnt/local/downloads/nzbs
torrents: /mnt/local/downloads/torrents
Important note: if you are not already using the following paths above, change them in settings.yml and reinstall Cloudbox now.
sudo ansible-playbook cloudbox.yml --tags cloudbox
Wait for the install to finish then sudo reboot and wait for box to come back online.
docker stop sonarr,sonarr4k,radarr,radarr4k,nzbget,rutorrent- Set the following...
nano /opt/rutorrent/rtorrent/rtorrent.rc
# Default directory
directory.default.set = /downloads/torrents/rutorrent/completed
############################################################################
SCROLL DOWN A BIT & COMMENT OUT THE SECTION AS SEEN BELOW
############################################################################
# move completed downloads from incoming/ to completed/
# method.insert = d.get_finished_dir, simple, "cat=/downloads/torrents/rutorrent/completed/,$d.custom1="
# method.insert = d.data_path, simple, "if=(d.is_multi_file), (cat,(d.directory),/), (cat,(d.directory),/,(d.name))"
# method.insert = d.move_to_complete, simple, "d.directory.set=$argument.1=; execute=mkdir,-p,$argument.1=; execute=mv,-u,$argument.0=,$argument.1=; d.save_full_session="
# method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.data_path=,$d.get_finished_dir="
docker start nzbget- If anything starts to download, stop it and delete it.
- In NZBGet, go to
SETTINGSthenPATHS. - Set
MainDirto/downloads/nzbs/nzbget, leave the rest as default i.e.DestDir = ${MainDir}/completedetc docker restart nzbget- In NZBGet, click the
Pause for 3hrsoption to stop anything downloading for a bit. cd ~/cloudboxsudo ansible-playbook cloudbox.yml --tags sonarr,sonarr4k,radarr,radarr4k,rutorrent- Open Sonarr, go to Settings, Download Client and set the following
Remote Path Mappings.
- Repeat the
Remote Path Mappingsforsonarr4k | radarr | radarr4k. Side note: any extra containers you may have made will need these mappings as well. - Open all your Sonarr / Radarr instances, go to
Media Managementand setUse Hardlinks instead of CopytoON. - Change all your root paths in Sonarr / Radarr to
/mnt/unionfs/Media/etc... - Set "exclude_open_files" to
falsewithnano /opt/cloudplow/config.json
"google": {
"check_interval": 1,
"exclude_open_files": false,
"max_size_gb": 2,
"opened_excludes": [
"/downloads/**"
sudo systemctl restart cloudplow- Enjoy hardlinking.