Skip to content

Commit

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

0 comments on commit 668fb2a

Please sign in to comment.