How to begin Initial hard-link creation?

Sonarr version (exact version): 3.0.10.1567
OS: linuxserver Docker image

Hey, I’ve been following the guides to install Sonarr within docker.

I’m not having any issues per se, I just can’t figure out how to do the initial sync / creation of hard-links.

My Docker host has the main folder /mnt/media, with 2 subfolders

- downloads/{shows/movies} # used for Qbittorrent downloads
- sorted /{shows/movies} # Should be used for Sonarr sorted media

Here’s how I mount the directory for the Qbittorrent container:

/mnt/media/downloads/:/mnt/media/downloads/

I just realized while typing, that ^this^ might need to change to /media/downloads
EDIT: Changed it and updated all my fastresume files.


For the Jellyfin container (Obviously this doesn’t work now, since there is nothing in the sorted folder. Before I used to mount directly from the downloads folder):

/mnt/media/sorted/shows:/data/tvshows/
/mnt/media/sorted/movies:/data/movies/

And for the Sonarr container:

/mnt/media:/media/

With all that out the way, I still don’t understand how I’m supposed to configure the Root Media folders, for Sonarr to create hard-links of media from the downloads folder, into the sorted folder?

Could anyone please advise?

Not sure which guides you’ve been following since you don’t say. There are many out there that don’t do it well. Just use Trash

https://trash-guides.info/Hardlinks/How-to-setup-for/Docker/

I did use trash, alongside the official docs, but I still didn’t get how to import an existing library into Sonarr.

Is this what I’m missing? Replace copies with hardlinks - TRaSH Guides

I tried the command from my Docker host, but nothing interesting came out of it:

jdupes -rMX onlyext:mp4,mkv,avi "/mnt/media/downloads/shows/" "/mnt/media/sorted/shows/"
Scanning: [REDACTED] files, [REDACTED] items (in 2 specified)
No duplicates found.


No duplicates found.
``

https://wiki.servarr.com/sonarr/quick-start-guide#how-to-import-your-existing-organized-media-library

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.