11 lines
367 B
Bash
11 lines
367 B
Bash
export BACKUPBOT_VERSION=v1
|
|
export SSH_CONFIG_VERSION=v1
|
|
|
|
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 -
|
|
}
|