plex-sync
running in a container as a cron job.
Fork from https://github.com/patsissons/docker-plex-sync
but with the node memory limit increased to 8GB for syncing larger libraries.
SECTION_MAPS
is the important environment variable to set, it uses the same syntax thatplex-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 runplex-sync
before starting cron if set to anything.
docker run -d -e SECTION_MAPS='xxxxxx@10.0.1.5/1 zzzzzz@10.0.1.10/3 | xxxx@10.0.1.6:32401/1,r https://yyyy@10.0.1.7/3,w zzzz@10.0.1.8/2,rw' -e CRON_SCHEDULE='*/5 * * * *' -e INITIAL_RUN=true miguel1993/plex-sync