Files
Domoticz/crontab.bak
2025-03-06 11:09:58 +01:00

228 lines
8.9 KiB
Plaintext

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.v3hKb5/crontab installed on Wed May 20 23:29:42 2020)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
MAILTO=""
#0 21 15 * * tar czf /tmp/sketch.tgz /home/souti/Arduino/*; cp /tmp/sketch.tgz /media/WDBlue/backup/; cp /tmp/sketch.tgz /home/souti/Google\ Drive/
#30 21 10 * * tar czf /tmp/arduino-1.6.0.tgz /home/souti/Téléchargements/arduino-1.6.0/*; cp /tmp/arduino-1.6.0.tgz /home/souti/Google\ Drive/; mv /tmp/arduino-1.6.0.tgz /media/WDBlue/backup/
#35 21 5 * * tar czf /tmp/arduino-1.6.5.tgz /home/souti/Téléchargements/arduino-1.6.5/*; cp /tmp/arduino-1.6.5.tgz /home/souti/Google\ Drive/; mv /tmp/arduino-1.6.5.tgz /media/WDBlue/backup/
#05 12 1 * * cp /media/WDBlue/backup/scriptsDomoticz.tgz /home/souti/Google\ Drive/
0 20 20 * * rsync -arvl --size-only --bwlimit=100 /media/WDBlue/Documents /home/souti/Dropbox
#30 20 * * * tar czf /home/souti/Google\ Drive/Arduino.tgz /home/souti/Arduino/*
#0 20 * * * tar czf /tmp/document.tgz /home/souti/Dropbox; cp /tmp/document.tgz /home/souti/Google\ Drive/
#Synchro Clips
#0 09 * * * rsync -arvl --size-only --bwlimit=100 /home/souti/Musique/Clips/ /media/WDBlue/Musique/Clips/
#0 11 * * * rsync -arvl --size-only --bwlimit=100 /home/souti/Musique/Concerts/ /media/WDBlue/Musique/Concerts/
#0 12 * * * rsync -arvl --size-only --delete-during /media/Philae/Impression3D /media/WDBlue/
#41 18 * * * rsync -arvl --size-only --delete-during --exclude=".*" /home/souti/ /media/WDBlue/Home_Souti_Akhenaton
#*/30 * * * * scp -r souti@philae:/var/www/html/PhpTest/* /home/souti/scripts/Php/
#5 0 * * * rsync -arvl --size-only /media/WDBlue/Musique/ /media/MEMUP/Musique/
#Update Clamav (Anti virus)
0 13 * * 3 /usr/bin/freshclam >> /var/log/resul_freshclam.txt
# Scan (Anti virus)
#0 12 * * 1 clamscan -r /home/pi --cross-fs=no --detect-pua=yes >/tmp/clamscan.txt
0 13 * * 2 /opt/domoticz/scripts/clamscan.sh
0 13 * * 1 /opt/domoticz/scripts/clamscanWDBlue.sh
10 14 * * * /opt/domoticz/scripts/prestashop.sh
# Pas besoin de le faire toutes les heures actuellement
10 12 * * * /opt/domoticz/scripts/prestashopHourly.sh
20 20 * * * /bin/tar cvzf /media/WDBlue/backup/ImagesMyPi/Octoprint"$(date '+%Y-%m-%d')".tgz /home/souti/OctoPrint/*
30 20 * * * /bin/tar cvz --exclude=uploads --exclude=logs -f /tmp/saveOctoprintData"$(date '+%H-%m-%d')".tgz /home/souti/.octoprint/
40 20 * * * /bin/tar cvz --exclude=uploads --exclude=logs -f /tmp/saveOctoprint2Data"$(date '+%H-%m-%d')".tgz /home/souti/.octoprint2/
# Mount Hackintosh
#*/5 * * * * mount_afp afp://souti:setaou@Hackintosh.home/Data/ /media/Hackintosh/ -o user=souti
#0 22 * * * rsync -arvl --size-only /media/WDBlue/Musique/ /media/Hackintosh/Musique/
#0 22 * * * rsync -arvl --size-only /media/WDBlue/SeriesTV/ /media/Hackintosh/SeriesTV/
#0 23 * * * rsync -arvl --size-only /media/WDBlue/StockagePhoto/ /media/Hackintosh/StockagePhoto/
#0 04 * * * rsync -arvl --size-only /media/WDBlue/films/ /media/Hackintosh/films/
#0 16 * * * rsync -aP --size-only /media/Backup/backup/ /media/WDBlue/backup/
#epure all files
0 19 5 * * cd /media/WDBlue/backup;bash epureall.sh
# DOMOTICZ
# Récpératin qualité de l'air rennes
#1 */4 * * * php /opt/domoticz/scripts/qualiteAir.php
*/5 * * * * php /opt/domoticz/scripts/suncalc.php
# Récupération Gaz 2 et Photo par les logs serial
#* * * * * python /opt/domoticz/scripts/MySerial.py
# Géneration des images de la terre et de la lune
#0/10 * * * * /opt/domoticz/www/templates/xplanet/xplanet_cloud.sh
# Synchronisation de la musique sur WDRed
#42 0 * * * rsync -rltzuv --size-only --del /media/WDBlue/Musique /media/DATA/
#0 13 * * * rsync -arvl /media/DATA/backup/ /media/WDBlue/
# Backup du serveur domoticz
0 2 * * * /opt/domoticz/scripts/backup/domoticz
0 3 * * * /opt/domoticz/scripts/backup/octoprint
# Recopie de la sauvegarde de raspbmc sur wdred
#0 3 * * * scp /media/WDBlue/backup/raspbmc.img /media/WDRed/backup/
# Récupération agenda domoticz sur google
#remplace par un script lua 0 */2 * * * python /opt/domoticz/scripts/getgooglecal.py
# Toutes les 10 minutes scan du fichier généré au-dessus pour lancement d'actions
#remplace par un script lua */5 * * * * python /opt/domoticz/scripts/cal_action.py
# Script Jeedom lancé toutes les minutes ?? WTF
#* * * * * su --shell=/bin/bash - www-data -c '/usr/bin/php /usr/share/nginx/www/jeedom/core/php/jeeCron.php' >> /dev/null 2>&1
# Script pour récupérer la température et l'humidité du Digispark
#*/10 * * * * /opt/domoticz/scripts/hum.sh
#Masse grasse JD
0 */4 * * * /opt/domoticz/scripts/withings.sh
#Update Domoticz & alerte
#0 1 */7 * * /opt/domoticz/scripts/update.sh
# read values on i2c
*/5 * * * * /opt/domoticz/scripts/i2cs2.py >/var/log/i2c.log
# Count banned ips
*/10 * * * * /opt/domoticz/scripts/banned.sh
# Sauvegarde home pi
#0 12 * * * tar cvzf /tmp/script.tgz --exclude '.*' --exclude '*.o' --exc$
#30 14 * * * /etc/backup/domoticzScripts
#45 14 * * * /etc/backup/domoticzOpt
#00 15 * * * /etc/backup/domoticzWww
#0 0 * * * /usr/bin/rsync -rvl --size-only /home/pi/ /media/Backup/domot$
#Ping pour garder la connexion réseau (Autre moyen ?)
#*/5 * * * * ping -c 10 192.168.0.1 2>/dev/null |grep rtt >/tmp/ping
#*/5 * * * * mount /media/WDBlue 2>/dev/null
#*/5 * * * * mount /media/WDGreen 2>/dev/null
#*/5 * * * * mount /media/DATA 2>/dev/null
#*/5 * * * * mount /media/Backup 2>/dev/null
#*/5 * * * * mount /media/Musique 2>/dev/null
#*/5 * * * * mount /media/MEMUP 2>/dev/null
# Check que domoticz tourne toujours
* * * * * /opt/domoticz/scripts/check.sh >>/tmp/check.log
# Etat de la route
#*/10 8,17 * * * /opt/domoticz/scripts/infotrafic.sh
#0 8,17 * * 1,2,3,4,5 /opt/domoticz/scripts/radars.sh
# Etat pollen
#10 8 * * 1 /opt/domoticz/scripts/infoPollen.sh
# Suppression des logs
0 10 * * * cd /var/log/; rm *.gz;
15 * * * * rm -rf /var/log/*.1
# *.[1234567890] *.log *.err syslog* samba/* faillog *.error *.old 2>/dev$
#Redemarrage DOMOTICZ
0 0 * * * service domoticz.sh restart
#Test ligne
10 */2 * * * /opt/domoticz/scripts/debit.sh
#Test ping Livebox
* * * * * /opt/domoticz/scripts/livebox2.sh
* * * * * /opt/domoticz/scripts/livebox.sh
#Update Clamav (Anti virus)
0 13 * * 3 /usr/bin/freshclam >> /var/log/resul_freshclam.txt
# Scan (Anti virus)
#0 12 * * 1 clamscan -r /home/pi --cross-fs=no --detect-pua=yes >/tmp/cl$
0 1 * * * /opt/domoticz/scripts/clamscandomoticz.sh
#0 3 * * * /opt/domoticz/scripts/clamscanfulldomoticz.sh
# Logwatch
57 8 * * * /opt/domoticz/scripts/logwatch.sh
#* * * * * ping -c 4 orangepizero
# Luminosite camera
#5 * * * * /usr/bin/python /opt/domoticz/scripts/lum.py
# Epuration backup
27 7 */3 * * /media/WDBlue/backup/epureAll.sh
# Extinction imprimante
*/10 0-6 * * * /opt/domoticz/scripts/octoprintStatus.sh >>/tmp/status.log
*/10 0-6 * * * /opt/domoticz/scripts/octoprint2Status.sh >>/tmp/status2.log
# Synchronisation home philae sur Akhenaton
0 20 * * * /opt/domoticz/scripts/PhilaeHome.sh
@reboot sh /opt/domoticz/scripts/mplayer.sh
@reboot /opt/ympd/ympd -w 9292
# Sauvegarde AcerManon
40 */3 * * 6,0 /opt/domoticz/scripts/AcerManon.sh
10 */3 * * 5 /opt/domoticz/scripts/AkhesaSouti.sh
40 */3 * * 5 /opt/domoticz/scripts/AkhesaTheo.sh