Hi,
I wanted to implement a script which runs a rsnapshot monthly backup every first saturday of the month... but it doesn´t work.
cron for openmediavault-rsnapshot:
5 * * * * root /var/lib/openmediavault/cron.d/rsnapshot hourly
5 14 * * * root /var/lib/openmediavault/cron.d/rsnapshot daily
30 0 * * 4 root /var/lib/openmediavault/cron.d/rsnapshot weekly
05 14 19-25 * * root /etc/cron.d/monatlich.sh
00 5 1-7 1 * root /etc/cron.d/jaehrlich.sh
monatlich.sh:
#!/bin/bash
wochentag=`date +%u`
echo "$wochentag"
if [ "$wochentag" = "4" ]
then
/var/lib/openmediavault/cron.d/rsnapshot monthly
fi
I thought the script runs today: 4 is Thursday (today); 20th is a Thursday , why doesnt it run at 15:00?
Thx for the support!!!