Performing Hotbackups of Gogs

社会主义新天地 提交于 2019-12-08 09:03:43

问题


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

Hotback of Git Server Using RSync?

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


回答1:


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.



来源:https://stackoverflow.com/questions/36946751/performing-hotbackups-of-gogs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!