1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-22 02:32:51 +01:00

Add section on using CDH in place of a Drone Factory Folder sync setup.

Donald Webster 2020-02-08 22:28:06 -08:00
parent 4771f67c09
commit 0cf2727063

@ -68,30 +68,18 @@ In Settings->Download Client->Remote Path Mapping is an option to configure Sona
For example:
If I configured a remote Sabznzbd instance with the Host `10.2.3.4` in Sonarr. And that Sabnzbd instance uses `/sda3/download/sabnzbd/completed` as root folder for completed downloads. And that path is available as `\\10.2.3.4\sabnzbd\completed` on my Windows machine.
Then you would add a Remote Path Mapping for:
- Host=`10.2.3.4`
- RemotePath=`/sda3/download/sabnzbd`
- LocalPath=`\\10.2.3.4\sabnzbd`
- Host: `10.2.3.4`
- Remote Path: `/sda3/download/sabnzbd`
- Local Path: `\\10.2.3.4\sabnzbd`
However, the best solution to this problem is to run Sonarr and your Download Client on the same computer.
#### Using Completed Download Handling in a sync setup
A common misunderstanding of Completed Download Handling in comparison with Drone Factory Folder is that it can't be used in a sync setup, common with torrent clients on seedboxes. Thankfully, this isn't true and just requires the correct setup.
The hardest part is that the sync'd files should only show up when it is safe to import them, which is *usually* when they're done, but at least when all the files are listed and hard links are possible and enabled. For single episode torrents, it doesn't matter... but it does for season packs because Sonarr will stop importing when it doesn't see anymore files. In the easiest to configure sync setup of *just* the completed folder, the seedbox torrent client tells Sonarr the download is done, so it starts looking for it. The sync process may have only started/finished a few of the files, not all of them and so a partial import occurs. This is easy to account for though, just by syncing a level *below* your completed folder, so you're syncing both incomplete *and* completed torrents. The sync programs are smart enough to understand a *move*, so while the torrent is downloading, it is also syncing to your local server. When it finishes and moves to the completed folder, the sync program will reflect that and it just works.
If you're using your *own* sync script instead of something like SyncThing or Resilio Sync, you just need to script the same sort of process. Do the `rsync` or `scp` or whatever to an *adjacent* folder, then move it to the right place when done.
The final key is the remote path map, which is reasonably discussed above.