Currently, Sonarr has the option to do a COPY or to create a Hardlink when automatically importing files. When manually importing files, it offers the options of “Move” and “Hardlink/Copy”. I would like to extend this “Move” functionality to have all files be moved rather than copied when importing automatically.
Use Case:
My torrenting happens on a completely different machine. The files are uploaded to a blackhole-like directory called /staging on the file system that Sonarr runs on. Once Sonarr grabs the file from /staging I would like it to clean up the file and file it away for Plex.
With a “Copy”, it leaves a copy of the file in the black hole directory that I have to manually clean up, or write a script to keep clean.
With a “Hardlink”, it creates a link to the original data into my media library.
The problem: My media library is using a mergerfs file system, with files in the directory staying about 48 hours then automatically uploaded to an rclone remote file system. Sonarr/Plex do not notice the move as mergerfs make it invisible. This process would sync the hardlink to the cloud only, and the data would be deleted from the local disk (/staging) eventually and lost.
Sonarr can handle the moves, as the “manual import” process has this functionality already; I would like to extend this to automatic imports too.