#!/bin/bash
#Filename: git_backup.sh
#Function: Use git tool backup files

BACK_DIR='/data/website/preview'

{
	cd ${BACK_DIR}
	git add -A
	git commit -am "Commit - @ $(date)"
	git push origin master
} >/var/log/git_backup.log 2>&1 | logger -t 'git bakcup'
