Plex-Rsync-Manager is a Python script designed to backup media files from a remote Plex server to another Plex server based on items in the watchlist.
- openssh
- plexapi
- sonarr
- Add an item to your Plex watchlist.
- Run the script.
- The script will search for media matching your watchlist item on the other server.
- Once found, it will sync the media from one Plex server to another.
- For films, it will remove them from your watchlist after syncing.
- For TV shows, if the Sonarr extension is set up, it will check if the show has ended and remove it from the watchlist accordingly.
We recommend setting up the script to run as a cronjob for automated server syncing.
- Run the Setup_PlexRsyncManager.py Python file.
- Follow the prompts to provide necessary information for the script to run.
- The script can be configured in different ways to accommodate various circumstances:
- Select Remote Shell Rsync or Daemon Rsync based on your preference.
- Choose whether you're sending from or receiving to the current machine.
- Provide the username of the remote computer for establishing the rsync connection.
- Input details for the sending server:
- Plex token
- Server name
- TV show and movie category names as they appear in Plex
- Folder locations (if using a daemon, provide the file location from the daemon root)
- Repeat the same for the receiving server.
- If you wish to integrate Sonarr, select Sonarr from the menu and input the URL (in http:// format) and the API key.
- Once setup is complete, the configuration details will be saved to a secrets.json file for future reference and editing.
After setup, it's recommended to run the PlexRsyncManager.py script once to ensure everything is working correctly. Then, set up a cronjob to run the script at your desired time for automatic syncing.