gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Mirror Summary

Open lunny opened this issue 4 years ago • 12 comments

  • [x] ~~Mirror issues along with the repo #1876~~
  • [ ] Mirror new-created wiki when repositories migrated #2309
  • [x] Reverse mirroring, from Gitea to remote Github/Gitlab/Gitea and etc. #3480
  • [ ] Mirror repositories could not be readonly and Allow to push commits manually #7609
  • [ ] Mirror an entire github organization into gitea organization #8424
  • [ ] Mirror Topics #14590
  • [ ] Mirror Docs

lunny avatar Feb 08 '21 03:02 lunny

I searched for "Mirror" on https://docs.gitea.io, and I didn't see much describing how mirrors run; e.g. what happens automatically (git pull, git prune from the origin codebase?) and what must be updated by a manual process (issues, wiki pages).

Someone visiting gitea.com as an end user will probably need a summary page of the purpose and mechanisms of mirror repositories. Maybe a paragraph on the "import repository" page could help people learn more.

c4lliope avatar Feb 08 '21 17:02 c4lliope

Is https://github.com/go-gitea/gitea/issues/3480 a duplicate issue to https://github.com/go-gitea/gitea/issues/7609?

kdumontnu avatar Feb 08 '21 23:02 kdumontnu

@kdumontnu I think it's not the same. #3480 means a reverse mirror, #7609 means a mirror repository could be not readonly.

lunny avatar Feb 09 '21 03:02 lunny

I searched for "Mirror" on https://docs.gitea.io, and I didn't see much describing how mirrors run; e.g. what happens automatically (git pull, git prune from the origin codebase?) and what must be updated by a manual process (issues, wiki pages).

Someone visiting gitea.com as an end user will probably need a summary page of the purpose and mechanisms of mirror repositories. Maybe a paragraph on the "import repository" page could help people learn more.

Yes, mirror docs is also needed.

lunny avatar Feb 09 '21 03:02 lunny

@lunny thx, but the syntax is very confusing then. You say "Reverse mirroring #7609" above, but "#3480 means reverse mirror".

Do you mean then: "Enable pushing to Gitea repo configured as secondary mirror #7609"? And "Enable Gitea as primary in mirror configuration #3480"?

We can use consistent diction for mirrors as "primary (push)" and "secondary (pull)"


Also, I added a bounty to #3480 if you can add the following:

[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=54827645)](https://www.bountysource.com/issues/54827645-ability-to-automatically-push-to-remote-mirror-repository)
  • Enable Gitea as primary in mirror configuration #3480 Bountysource

kdumontnu avatar Feb 09 '21 05:02 kdumontnu

@lunny thx, but the syntax is very confusing then. You say "Reverse mirroring #7609" above, but "#3480 means reverse mirror".

Do you mean then: "Enable pushing to Gitea repo configured as secondary mirror #7609"? And "Enable Gitea as primary in mirror configuration #3480"?

We can use consistent diction for mirrors as "primary (push)" and "secondary (pull)"

Also, I added a bounty to #3480 if you can add the following:

[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=54827645)](https://www.bountysource.com/issues/54827645-ability-to-automatically-push-to-remote-mirror-repository)
  • Enable Gitea as primary in mirror configuration #3480 Bountysource

Thanks, I have updated the issue content. I haven't followed your advise because I think primary and secondary is still confusing. Please let me know if you think it's still confusing. :)

lunny avatar Feb 09 '21 06:02 lunny

Option to "protect" mirrors (dont sync if it will drop commits or is a completly new history)

6543 avatar May 17 '21 11:05 6543

suggest add https://gitee.com support, from #15945

a1012112796 avatar May 22 '21 14:05 a1012112796

@a1012112796 wrong summary issue :)

Do you mean #8689?

6543 avatar May 22 '21 16:05 6543

I would suggest in addition to the issue #3480 to add the ability to only push certain branch, tags, etc.

Sirttas avatar Aug 16 '21 14:08 Sirttas

see also #18220

culmat avatar Jan 09 '22 08:01 culmat

ability to only push certain branch, tags, etc

I order to prevent deleted or force-pushed commits from appearing in the GitHub Activity(and again), it would be nice to have some threshold on commit age when scheduled push mirror is enabled. Like once per a day push the only commits (tags, etc.), which older than 8 hours, for example.

zc-devs avatar Oct 14 '24 12:10 zc-devs