https://github.com/patsissons/docker-plex-sync
https://github.com/patsissons/docker-plex-sync
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patsissons/docker-plex-sync
- Owner: patsissons
- License: mit
- Created: 2017-05-09T04:25:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T22:08:29.000Z (over 5 years ago)
- Last Synced: 2024-11-19T19:43:31.891Z (8 months ago)
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Docker Containers
[](https://microbadger.com/images/patsissons/plex-sync) [](https://microbadger.com/images/patsissons/plex-sync) [](https://hub.docker.com/r/patsissons/plex-sync/) [](https://hub.docker.com/r/patsissons/plex-sync/) [](https://opensource.org/licenses/MIT)
[`plex-sync`](https://github.com/jacobwgillespie/plex-sync) running in a container as a cron job.
## Usage
- `SECTION_MAPS` is the important environment variable to set, it uses the same syntax that `plex-sync` uses, but allows multiple mappings to be configured by separating them with a `|` as shown in the example below.
- `CRON_SCHEDULE` allows you to configure a non-default schedule to run the sync (default is every hour, `0 * * * *`)
- `INITIAL_RUN` will run `plex-sync` before starting cron if set to anything.## Example
```sh
docker run -d -e SECTION_MAPS='[email protected]/1 [email protected]/3 | [email protected]:32401/1,r https://[email protected]/3,w [email protected]/2,rw' -e CRON_SCHEDULE='*/5 * * * *' -e INITIAL_RUN=true patsissons/plex-sync
```