backup-bot-two/abra.sh
moritz f7f46d7b7b
All checks were successful
continuous-integration/drone/push Build is passing
Merge pull request 'feat: Adds monitoring setup for prometheus push gateway' (#69) from prom-mon into main
Reviewed-on: #69
2025-01-14 13:34:34 +00:00

12 lines
395 B
Bash

export SSH_CONFIG_VERSION=v1
export ENTRYPOINT_VERSION=v17
export CRONJOB_VERSION=v2
run_cron () {
schedule="$(crontab -l | tr -s " " | cut -d ' ' -f-5)"
rm -f /tmp/backup.log
echo "* * * * * $(crontab -l | tr -s " " | cut -d ' ' -f6-)" | crontab -
while [ ! -f /tmp/backup.log ]; do sleep 1; done
echo "$schedule $(crontab -l | tr -s " " | cut -d ' ' -f6-)" | crontab -
}