Skip to content

Commit

Permalink
change crontab output
Browse files Browse the repository at this point in the history
  • Loading branch information
joseneto committed Nov 30, 2015
1 parent fb40974 commit d905af9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ if [ "$ONE_SHOOT" == "true" ]; then
exit 0
else
# scheduele backup window
crontab -l | { cat; echo "$BACKUP_WINDOW /backup/functions.sh"; } | crontab -;
cron -f -L 8;
touch /var/log/cron.log;
crontab -l | { cat; echo "$BACKUP_WINDOW /backup/functions.sh >> /var/log/cron.log 2>&1"; } | crontab -;
tail -f /var/log/cron.log;
exit $?
fi

0 comments on commit d905af9

Please sign in to comment.