Skip to content

User crontab example

Silent-Remux.mkv edited this page Oct 20, 2018 · 36 revisions

Example user crontab for cloudbox users.

crontab -e

@daily /opt/python-plexlibrary/plexlibrary.sh
0 5 * * * sudo PATH='/usr/bin:/bin:/usr/local/bin' env ANSIBLE_CONFIG='/home/seed/cloudbox/ansible.cfg' '/usr/local/bin/ansible-playbook' '/home/seed/cloudbox/cloudbox.yml' --tags backup -v --skip-tags setti$
0 1 * * * curl -s https://cloudbox.works/repo.sh | bash >/dev/null && cd ~/cloudbox
* * * * * /opt/scripts/nzbget/cleanup.sh
0 10 * * * /opt/scripts/plex/optimize.sh
0 * * * * PATH='/usr/bin:/bin:/usr/local/bin' cd /opt/SonarrSync/ ; /usr/bin/python SonarrSync.py

Line 1: python-plexlibrary script to make Plex libraries. Installed automatically with run of Cloudbox role. - [Runs midnight daily]

Line 2: Cloudbox backup. - [Runs daily @ 5AM server time]

Line 3: Cloudbox repo.sh script to update Cloudbox and do auto-updates for you - [Runs daily @ 1AM server time]

Line 4: rxwatcher's cleanup script to remove left over junk in /downloads/nzbs/nzbget/completed/sonarr/* etc. - [Runs every minute] Note: Script found on Cloudbox Discord #general pinned messages.

Line 5: Script to optimize the Plex database. - [Runs daily @ 10AM server time] Note: Script found on Cloudbox Discord #general pinned messages.

Line 6: Enormoz's SonarrSync (based on Sperryfreak's RadarrSync) - [Runs hourly]

Install Guides

Repository

Apps

Misc Guides

General Stuff

Linux Stuff

Plex

Organizr

Downloading

STRM

Clone this wiki locally