I am looking for a solution to backup multiple shared git repositories, each with multiple branches, and some of the branches get rebased and forced (I know that's against best practices, but it is something that I have to deal with now)
I was thinking a simple git clone --mirror
and then periodically git remote update
would be enough, but that won't keep anything that gets rebased with a push force.
I experimented with git bundle
and I don't think it's a good solution for what I am trying to do here.
Looking for something incremental, light and easy to use for recovery, I am thinking maybe git format-patch
can be used to script the recording of every single new commit that happens anywhere. Is this too much for the task?