37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
crontab_id,crontab_path,crontab_created_timestamp,crontab_modified_timestamp,crontab_data
|
|
4,/etc/cron.d/0hourly,"2023-05-10 02:40:31","2023-05-10 02:40:31","# Run the hourly jobs
|
|
SHELL=/bin/bash
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
MAILTO=root
|
|
01 * * * * root run-parts /etc/cron.hourly"
|
|
5,/etc/cron.d/timeshift-hourly,"2023-05-10 02:40:32","2023-05-10 02:40:32","SHELL=/bin/bash
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
MAILTO=""""
|
|
|
|
0 * * * * root timeshift --check --scripted"
|
|
6,/etc/cron.hourly/0anacron,"2023-05-10 02:40:32","2023-05-10 02:40:32","#!/bin/sh
|
|
# Check whether 0anacron was run today already
|
|
if test -r /var/spool/anacron/cron.daily; then
|
|
day=`cat /var/spool/anacron/cron.daily`
|
|
fi
|
|
if [ `date +%Y%m%d` = ""$day"" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Do not run jobs when on battery power
|
|
online=1
|
|
for psupply in /sys/class/power_supply/* ; do
|
|
if [ `cat ""$psupply/type"" 2>/dev/null`x = Mainsx ] && [ -f ""$psupply/online"" ]; then
|
|
if [ `cat ""$psupply/online"" 2>/dev/null`x = 1x ]; then
|
|
online=1
|
|
break
|
|
else
|
|
online=0
|
|
fi
|
|
fi
|
|
done
|
|
if [ $online = 0 ]; then
|
|
exit 0
|
|
fi
|
|
/usr/sbin/anacron -s"
|