I’d like to use git for backups, but using more than double the space for .git is a bit too much. Is there a nice parameter that places the data somewhere else or do I have to mount my backup HD to .git?
I’d like to use git for backups, but using more than double the space
Share
You can use the
GIT_DIRenvironment variable in order to put your .git in another place than your current working tree.From Git man page:
Note that you will find valid alternatives for backing up a Git repo in this SO question (not including the bup system mentioned by Greg Hewgill in the comments, python-based, which stores its data in a git-formatted repository).