small_server_thingies/gogs/mirroring_with_gitea.md
2022-01-15 13:55:33 +01:00

1.1 KiB

My gogs repo has started to have quite a bit of interesting info. The gogs instance is deployed on a clouding machine, and clouding has proven to be a very reliable company so far. But, if they ever have an incident and the data is gone, I'm fucked big time.

Recently I deployed gitea instance on a local machine at my place. I realised gitea has this pretty neat mirroring function that can keep a syncd copy of repos in gogs, so I'm gonna set that up for all the important repos.

For auth purposes, I had to get a personal token tied to my user account in gogs. It is:

d3568092375925b7cba556b55c65a684e31ba55f

It needs to be used when setting up the mirrors in gitea so that gitea has the right auth.

I have checked and it seems that the automatic refresh from gitea is not really copying over the new changes I'm making (I'm using this repo as a test). I need to look into it and fix it somehow or the whole thing is just useless...

I found out the issue: every mirror has its own config param to set the desired mirror frequency. By default it's 8 hours. I'll just keep it that way, I don't think more than that is necessary.