Skip to content

Using giteapy programmatically to mirror all my github projects #6

@vonpupp

Description

@vonpupp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions