ltcp/aufgabe2.4/cron.daily/git-log-rotate

8 lines
152 B
Plaintext
Raw Normal View History

2013-11-13 14:48:57 +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