0
Imagine I have a bare Git repository on my own hosted server that is used by multiple folks for cloning, pushing, and pulling. What commands would be necessary to get such a repository into a state for performing a snapshot as described in the link below in reference to an application-consistent backup?
I envision I need Git commands for the following tasks when locking:
- Prohibit pushes from other users.
- Allow any pushes currently occurring to complete.
I envision I need Git commands for the following tasks when unlocking:
- Resume allowing pushes from other users.
I've been looking into the differences between crash-consistent backups and application-consistent backups.
It seems application-consistency is needed for applications such as databases in which some quiescing time is needed along with controlled locking and unlocking in order to get the application into a state ready to perform the snapshot.
I'm not asking here whether or not such an activity is necessary for Git; I feel that's more of an opinion than a fact.
What I'm asking here is what Git commands are necessary and in what order in order to support an application-consistent backup of Git repos on a server.