ltcp/aufgabe4/cron.daily/git-log-rotate

8 lines
152 B
Plaintext
Raw Normal View History

2013-11-03 12:16:31 +00:00
#!/bin/bash
set -e
cd /var/log
find . -iname \*.log | xargs git add
git commit --all --message "daily autocommit"
git push --force origin master:logs