title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
Symlinks and Permissions |
Detailed information on how Riven uses symlinks and manages permissions. |
true |
2024-07-28 16:43:05 UTC |
markdown |
2024-07-28 16:29:55 UTC |
Riven uses a symlink-based system to efficiently manage media files. This page provides detailed information on how Riven handles symlinks and permissions.
This flowchart illustrates the symlink creation process in Riven:
- Once a download is completed, the file becomes available for symlinking.
- Riven attempts to create a symlink to the file.
- The system checks if the permissions are correct for the symlink.
- If permissions are correct, the symlink is created successfully.
- If permissions are incorrect, Riven adjusts them and attempts to create the symlink again.
- After successful symlink creation, the media server library is updated.
- Rclone Path: This is the path to your Rclone mount that contains your downloaded torrents on your host system.
- Library Path: This is the location where your media server (e.g., Plex, Jellyfin, Emby) expects to find the media files.
- Symlink Creation: Riven creates symbolic links from the Library Path to the actual files in the Rclone Path.
- Permission Management: Riven ensures that the symlinks have the correct permissions for your media server to access them.
Here's what the typical permissions should look like:
$ ls -la /mnt
total 16
drwxr-xr-x 4 root root 4096 Jul 15 06:18 .
drwxr-xr-x 19 root root 4096 Jul 15 06:18 ..
drwxrwxr-x 2 1000 1000 4096 Jul 15 06:18 library
drwxrwxr-x 2 root root 4096 Jul 15 06:18 zurg
$ ls -la /mnt/library
total 24
drwxrwxr-x 6 1000 1000 4096 Jul 15 06:18 .
drwxr-xr-x 4 root root 4096 Jul 15 06:18 ..
drwxrwxr-x 2 1000 1000 4096 Jul 15 06:18 movies
drwxrwxr-x 2 1000 1000 4096 Jul 15 06:18 tv_shows
drwxrwxr-x 2 1000 1000 4096 Jul 15 06:18 anime_movies
drwxrwxr-x 2 1000 1000 4096 Jul 15 06:18 anime_shows
Remember to configure your settings.json
file correctly to ensure Riven can create and manage symlinks effectively:
"symlink": {
"rclone_path": "/mnt/zurg",
"library_path": "/mnt/library",
"separate_anime_dirs": false // Use separate directories for anime
}
By understanding how Riven manages symlinks and permissions, you can ensure your media files are organized efficiently and accessible to your media server.