This repository was archived by the owner on Mar 7, 2025. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 130
Hardlinking Guide
        sevospl edited this page Jun 3, 2020 
        ·
        22 revisions
      
    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 ~/cloudbox
- sudo 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.
- airdcpp
- Airsonic
- alltube
- always
- amongus
- Apprise
- archivebox
- arrX (SonarrX, RadarrX, BazarrX)
- AssHama
- autoscan
- Bazarrx
- Beets
- Bitwarden
- Booksonic
- Bookstack
- btrfsmaintenance
- calibre-web
- calibre
- Coder
- comicstreamer
- comixed
- couchpotato
- Dashmachine
- deemix
- deezloader-remix
- Deluge
- DelugeVPN
- Drive STRM
- eBooks: Calibre and Calibre web
- emby2
- embystat
- EPMS
- Filebot
- Filebrowser
- filezilla
- FlareSolverr
- Funkwhale
- Gazee
- Gitea
- Glances
- Goplaxt
- gotify
- grafana
- Guacamole
- Handbrake
- Heimdall
- Hetzner NFS VLAN
- influxdb
- InvoiceNinja
- JDownloader2
- Jellyfin
- Jirafeau
- KCPTUN
- Kitana
- komga
- Krusader
- LazyLibrarian
- lidarrx
- Logarr
- Mango
- Mediabutler
- medusa
- Mellow
- Minecraft
- Monitorr
- Mylar
- mylar3
- navidrome
- Nextcloud
- NowShowing
- NZBHydra (v1)
- ombix
- Organizr (v1)
- ouroboros
- overseerr
- paperless-ng
- plex2
- Pyload
- qBittorrent
- qbittorrentvpn
- Quassel
- RadarrX
- redbot
- requestrr
- requestrrx
- resilio-sync
- rocketchat
- sickchill
- searx
- SonarrX
- Speedtest
- SSHswifty
- stash
- Subsonic
- SyncLounge
- Tdarr
- telegraf
- Telly
- TheLounge
- transmissionvpn
- transmissionx
- ubooquity
- Unifi
- unmanic
- Varken
- vnstat
- wallabag
- Watchtower
- Wordpress
- Xteve
- ZNC
- Custom python plexlibrary libraries
- Speed up Plex / Emby / Jellyfin
- Tautulli Custom Scripts
- Plex Scanners and Agents
