Files
shell/README.md

1.3 KiB

Shell Scripts Documentation

This repository contains various shell scripts for managing media-related tasks.

Available Scripts

  • Backup Media Script: Documentation for the backup-media.sh script.
  • plex.sh: Script to manage the Plex Media Server (start, stop, restart, status).
  • backup-plex.sh: Script to back up Plex Media Server databases and related files.
  • folder-metrics.sh: Script to calculate disk usage and file count for a directory and its subdirectories.

Documentation

plex.sh

This script is used to manage the Plex Media Server service on a systemd-based Linux distribution. It provides the following functionalities:

  • start: Starts the Plex Media Server.
  • stop: Stops the Plex Media Server.
  • restart: Restarts the Plex Media Server.
  • status: Displays the current status of the Plex Media Server.

Usage

Note that these commands will run as root.

./shell/plex.sh {start|stop|restart|status}