[GH-ISSUE #32] Configurable Plex data path and service name #6

Closed
opened 2026-03-04 19:17:23 +03:00 by kerem · 0 comments
Owner

Originally created by @codesterribly on GitHub (Nov 15, 2025).
Original GitHub issue: https://github.com/007revad/Linux_Plex_Backup/issues/32

Right now Plex paths and service unit names are hard coded:

Plex_Data_Path="/var/lib/plexmediaserver/Library/Application Support"
...
systemctl start plexmediaserver

On some distros or container setups those differ. I would add to backup_linux_plex.config:

# Optional overrides
Plex_Data_Path=
Plex_Service_Name=plexmediaserver

Then in the scripts:

if [[ ${snap,,} == "yes" ]]; then
    Plex_Data_Path="${Plex_Data_Path:-/var/snap/plexmediaserver/common/Library/Application Support}"
else
    Plex_Data_Path="${Plex_Data_Path:-/var/lib/plexmediaserver/Library/Application Support}"
fi

PLEX_SERVICE="${Plex_Service_Name:-plexmediaserver}"

systemctl stop "$PLEX_SERVICE"
...
systemctl start "$PLEX_SERVICE"
Originally created by @codesterribly on GitHub (Nov 15, 2025). Original GitHub issue: https://github.com/007revad/Linux_Plex_Backup/issues/32 Right now Plex paths and service unit names are hard coded: ``` Plex_Data_Path="/var/lib/plexmediaserver/Library/Application Support" ... systemctl start plexmediaserver ``` On some distros or container setups those differ. I would add to backup_linux_plex.config: ``` # Optional overrides Plex_Data_Path= Plex_Service_Name=plexmediaserver ``` Then in the scripts: ``` if [[ ${snap,,} == "yes" ]]; then Plex_Data_Path="${Plex_Data_Path:-/var/snap/plexmediaserver/common/Library/Application Support}" else Plex_Data_Path="${Plex_Data_Path:-/var/lib/plexmediaserver/Library/Application Support}" fi PLEX_SERVICE="${Plex_Service_Name:-plexmediaserver}" systemctl stop "$PLEX_SERVICE" ... systemctl start "$PLEX_SERVICE" ```
kerem closed this issue 2026-03-04 19:17:24 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Linux_Plex_Backup#6
No description provided.