Performing Hotbackups of Gogs

This question is related to this question which targets only the gogs-repositories component of gogs / git:

Hotback of Git Server Using RSync?

  • retro create a git repository from backup dirs
  • How can I set up the working directory and the local repository on different drives?
  • Moving a Subversion repository to another server
  • Maintaining and synchronizing a mirror remote Git repository
  • Add/commit to bare repo from a non-git folder
  • How do I back up a remote SVN repository
  • Gogs also performs ‘health checks’ on the git repositories. What do these health checks do? Could they mutate the state of the repositories? If so could that cause corruption is the repositories are backed up using RSync?


  • Undoing git remove
  • What should I do when git revert aborts with an error message?
  • The String 'Head' does not represent a revision number
  • Visual Studio 2015 update 2 - Git is showing me in changes all the bin\debug and obj\debug folder/files , why would it be ignoring the gitignore
  • How to setup the Output and Intermeidate directory in visual studio to be dependent on current git branch?
  • git, devscripts, debhelper on Travis CI
  • One Solution collect form web for “Performing Hotbackups of Gogs”

    Ultimately I wanted to be able to perform efficient Cron based nightly backups while minimizing the chance of data corruption and being able to move the backup of site with encryption. I also needed a time machine capability in the event that for some reason something something did get corrupted (Even though going back to a previous commit is an option as well). Turns out duplicity has all of that built in and is a perfect fit:

    So that’s what I’m rolling with. I’m also planning to switch off the health checks and perform them outside of gogs on a separate CRON job, but I’m still researching the recipe for that. If anyone has tips please comment.

    Git Baby is a git and github fan, let's start git clone.