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?

  • Does Github auto backup our projects into globally spread mirrors, like SourceForge?
  • What is the best way to back up an entire git repository on external disk?
  • Backup hosted repository to off-site location
  • mysterious vanishing branches in git
  • GIT clone to external drive for backup
  • Auto-Back Up of Subversion 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?

    TIA,
    Ole

  • How do I sign out of the desktop version of GitHub?
  • Git nested repos
  • How to Add Remote with Git Gui?
  • How can I generate/apply git patches only for commits that alter specific files
  • Why does “git rebase” leave opposite sets of modifications in the stage and the working copy?
  • Git repository in a git repository
  • 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:

    https://help.ubuntu.com/community/DuplicityBackupHowto

    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.