Bash script to save a folder into git repository.
curl -s https://raw.githubusercontent.com/babeuloula/save2git/master/install.sh | sudo bash
First you need to init your repository:
save2git --mode init --path /path/to/save
Then, you need to push all data to your repository:
save2git --mode push --path /path/to/save
You can easily setting up a CRON task to sync your repository automatically.
0 0 * * * save2git --mode push --path /path/to/save 2>&1
curl -s https://raw.githubusercontent.com/babeuloula/save2git/master/uninstall.sh | sudo bash