I have a CentOs 7.1 and a Git Server installed on it.
The Git Server is configured with SSH keys so users need a passphrase and a private key to connect to the server.
There are currently 7 repositories, which the users commit to frequently.
The administration of the Git-Server is done by the tool gitolite-admin.
I want to create a backup of the Git Server including every repository and every single configuration setting.
I know that cronjobs can be used for this, but I am not sure wether it is better to clone the repos or zip/tar all git-related folders into a file.
How to do this properly?