Browse Source

Merge InvNinj & WWW

(also remove comments)
master
Chase Hall 2 months ago
parent
commit
abb77f4f44
1 changed files with 4 additions and 37 deletions
  1. + 4
    - 37
      VM Scripts/Crontabs.txt

+ 4
- 37
VM Scripts/Crontabs.txt

@ -1,44 +1,29 @@
# Crontab's for different VMs/VPSs
# Filtered by machine, then by what it does, and by time.
# Make sure crontab has an empty line at EOF.
# BEGIN WWW
*/5 * * * * /root/ddns.sh
# Every 5m run ddns.sh
0 0 * * * sudo certbot renew
# Every day at midnight, grab any new https certs.
0 1 * * * /root/Scripts_CH/VM\ Scripts/Bibliogram/Kill.sh
# Every day at 1 am, update bibliogram.
0 1 * * * rm -rf Scripts/ Scripts_CH/ && git clone https://git.chasehall.net/NebulaHost/Scripts.git Scripts && git clone https://git.chasehall.net/Chase/Scripts.git Scripts_CH && cd Scripts && cd VM\ Scripts/WWW && chmod +x *.sh && cd .. && cd InvoiceNinja && chmod +x *.sh && cd ~ && cd Scripts_CH && cd VM\ Scripts/ && cd Bibliogram/ && chmod +x *.sh && cd .. && cd Invidious-Update && chmod +x *.sh && cd .. && cd Plex && chmod +x *.sh && cd ~
# Every day at 1 am, update Scripts git.
0 1 * * * cd /var/www/rss.chasehall.net && sudo systemctl stop ttrss && git pull && sudo systemctl start ttrss
# Every day at 1am, update TT-RSS.
0 2 * * * /root/Scripts/Backup\ Scripts/WWW.sh
# Every day at 2 am, run backup.
# Every reboot restart (and update) bibliogram
@reboot /usr/bin/screen -S Bibliogram -d -m /root/Scripts_CH/VM\ Scripts/Bibliogram/Start.sh
0 0 * * * bash /root/Scripts/VM\ Scripts/InvoiceNinja/Updater.sh >> /dev/null
0 8 * * * /usr/local/bin/php /var/www/pay.nebulahost.us/artisan ninja:send-invoices
0 8 * * * /usr/local/bin/php /var/www/pay.nebulahost.us/artisan ninja:send-reminders
# END WWW
# BEGIN Plex
*/30 * * * * bash /home/user/Scripts/VM\ Scripts/Plex/fixperms.sh
# Every 30m fix file permissions for Plex content.
0 1 * * * /home/user/Scripts/Backup\ Scripts/Plex.sh
# Every day at 1 am, run backup.
0 1 * * * su -c 'rm -rf Scripts/ Scripts_CH/ && git clone https://git.chasehall.net/NebulaHost/Scripts.git Scripts && git clone https://git.chasehall.net/Chase/Scripts.git Scripts_CH && cd Scripts && cd VM\ Scripts/WWW && chmod +x *.sh && cd .. && cd InvoiceNinja && chmod +x *.sh && cd ~ && cd Scripts_CH && cd VM\ Scripts/ && cd Bibliogram/ && chmod +x *.sh && cd .. && cd Invidious-Update && chmod +x *.sh && cd .. && cd Plex && chmod +x *.sh && cd ~' -s /bin/bash user
# Every day at 1 am, update Scripts git.
# END Plex
@ -46,23 +31,15 @@
# BEGIN Mail
0 23 * * * apt update && apt upgrade -y && reboot now
# Every day at 11 pm, update and reboot mail VPS.
0 1 * * * /home/user-data/backup.sh
# Every day at 1 am, run backup.
# END Mail
# Begin Pi
*/5 * * * * /home/pi/ddns.sh
# Every 5m run ddns.sh
0 0 * * * sudo certbot renew
# Every day at midnight, grab any new https certs.
0 3 * * * /home/pi/backup.sh
# Every day at 3am, run backup.
# END Pi
@ -70,19 +47,10 @@
# BEGIN iMac
00 00 * * * /Users/Hall/backup.sh
# Every day at midnight, run backup.
# END iMac
# BEGIN Invoice Ninja
0 0 * * * bash /root/update.sh >> /dev/null
# Every day at midnight, update Invoice Ninja.
# END Invoice Ninja
# BEGIN Invidious
# sudo crontab -u postgres -e
@ -102,6 +70,5 @@
# BEGIN DockerCE
0 1 * * * /root/backup.sh
# Every day at 1 am, run backup.
# END DockerCE

Loading…
Cancel
Save