#!/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