A little script I made to share my media between different servers. This is designed for Windows installs of the media servers (e.g. .exe) . This is not intended for Containers or Linux installs.
Introduction
This PowerShell script is a versatile tool designed to create symbolic links (symlinks) on your Windows system. A symbolic link is an advanced type of shortcut that makes a file or folder appear to exist in multiple locations without actually duplicating the data. This is particularly useful for media libraries where you might have original files in one location (e.g., recorded by a DVR) but want them to appear in another location for a media server (e.g., Jellyfin, Plex, Emby) to scan, without consuming double the disk space.
This script is intentionally generalized, using "Source" and "Destination" terminology, so it can be adapted to various data organization needs, not just specific media applications.
Features
- Interactive Prompts: Guides you through the process by asking for necessary paths and choices.
-
Choice of Link Type: Allows you to create:
- Directory Symlinks: Links to entire folders (e.g., for TV show seasons).
- File Symlinks: Links to individual files (e.g., for movies).
- Both: Process both types in one go.
- Path Validation: Basic checks to ensure the source directories exist.
- Prevents Duplicates: Skips creating symlinks if one already exists at the destination.
- User-Friendly Output: Provides clear messages about what the script is doing.
Prerequisites
- Operating System: Windows 10 or newer (PowerShell is pre-installed).
- PowerShell: The script is written in PowerShell.
- Administrator Privileges: Crucially, the script must be run with Administrator privileges to create symbolic links.