-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrontab
More file actions
61 lines (61 loc) · 3.48 KB
/
crontab
File metadata and controls
61 lines (61 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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
##############################################################################
# Check operational processes
@daily /usr/bin/timeout -k 60 180 /home/pi/monitor_mount.sh
0 2 * * * /usr/bin/timeout -k 60 180 /home/pi/monitor_backup.sh
#
##############################################################################
# Backup copy of shared Keepass databases each day
0 1 * * * /usr/bin/timeout -k 60 180 /home/pi/keepass/backup_keepass.sh > /home/pi/keepass/backup.log 2>&1
# 0 1 * * * /usr/bin/timeout -k 60 180 cp /mnt/gdrive/parents/parents.kdbx /mnt/gdrive_parents/misc/
#
##############################################################################
# Backup copy of Grafana dashboards each day
5 1 * * * /usr/bin/timeout -k 60 180 /home/pi/grafana/backup_grafana.sh > /home/pi/grafana/backup.log 2>&1
#
##############################################################################
# Backup copy of Tesla code each day
10 1 * * * /usr/bin/timeout -k 60 180 rsync -a --delete /home/pi/tesla /mnt/usb
#
##############################################################################
# Backups each day
0 16 * * * crontab -l > /mnt/usb/crontab
0 16 * * * cp /home/pi/monitor_mount.sh /mnt/usb
0 16 * * * cp /home/pi/monitor_backup.sh /mnt/usb
#
##############################################################################
# Automation for Tesla solar, charging, and logging data
@hourly /usr/bin/timeout -k 60 180 /home/pi/tesla-command-proxy/monitor_proxy.sh >> /home/pi/tesla/python/cron.log 2>&1
58 * * * * /usr/bin/timeout -k 60 180 python -u /home/pi/tesla/python/TeslaTokenExpiration.py >> /home/pi/tesla/python/cron.log 2>&1
0 15 * * * /usr/bin/timeout -k 60 180 python -u /home/pi/tesla/python/RemoveTeslaCron.py >> /home/pi/tesla/python/cron.log 2>&1
0 22 * * * /usr/bin/timeout -k 60 600 python -u /home/pi/tesla/python/Charge.py >> /home/pi/tesla/python/cron.log 2>&1
@daily /usr/bin/timeout -k 60 600 python -u /home/pi/tesla/python/VehicleTelemetry.py >> /home/pi/tesla/python/cron.log 2>&1
*/5 * * * * /usr/bin/timeout -k 60 180 python /home/pi/tesla/python/EnergyLocalLiveTelemetry.py
0 6 * * * /usr/bin/timeout -k 60 180 python -u /home/pi/tesla/python/EnergyMode.py >> /home/pi/tesla/python/cron.log 2>&1
10 0 * * * /usr/bin/timeout -k 60 300 python -u /home/pi/tesla/python/EnergyTelemetry.py >> /home/pi/tesla/python/cron.log 2>&1
@weekly /usr/bin/timeout -k 60 180 python -u /home/pi/tesla/python/TruncateLog.py >> /home/pi/tesla/python/cron.log 2>&1
@weekly /usr/bin/timeout -k 60 180 python -u /home/pi/tesla/python/TruncateEmail.py >> /home/pi/tesla/python/cron.log 2>&1
#
##############################################################################