BagitUp is a Pythob based module that enables you to automatically backup your files and databases to Git
# .env
git_url="https://username:password@git_repo_url"
mysql_host="hostname"
mysql_username="user"
mysql_pass="pass"
mysql_dbname="Database Name"
pip install BagitUp
set environment variables in .env file
BagitUp -d /folder/to/backup/
MIT licensed. See the LICENSE file for more details.