giteapy icon indicating copy to clipboard operation
giteapy copied to clipboard

Using giteapy programmatically to mirror all my github projects

Open vonpupp opened this issue 1 year ago • 0 comments

Hello,

I got a gitea docker instance up an running locally with the intention to have a local backup of my github/gitlab repositories. Ideally I would like to have the local backup up to date so I guess mirroring is the way to go. Since I have many repositories, I would prefer to do this in a programmatically way. I already have a list of all my repositories.

It seems that repo_mirror_sync is the way to go, however I am not sure what the workflow would be. Probably I would have to create a repository within the organization first and set the mirror bool to true. It is not sure how to link it to the github git url though.

Is this the easiest/best way to approach this problem? I am not experienced with gitea so if you could point me into the right direction I would be very grateful.

Thanks.

vonpupp avatar Jul 25 '23 01:07 vonpupp