I am trying to use git as a configuration management/backup solution for multiple directories. My thinking was to setup a cron job to do nightly commits and push to our central repository. What is the best way to achieve this for folders that aren't contiguous? The only thing I was thinking of was initializing the git repository in /
and then add the folders as necessary. Is there a better way? Here are the example folders I would like to backup.
/etc/folder1/
/opt/folder2/
/var/log/folder1/