Mirrors
Sync your repo across multiple platforms automatically.
How mirrors work
Gitorii uses a primary/replica architecture. The primary is your source of truth โ
every torii mirror sync pushes from primary to all replicas.
Supported: GitHub, GitLab, Gitea, Forgejo, Codeberg.
Setup
# Add primary (source of truth) $ torii mirror add-primary gitlab user paskidev my-repo -p ssh # Add replica (receives pushes) $ torii mirror add-replica github user PaskiDev my-repo -p ssh $ torii mirror list $ torii mirror sync $ torii mirror sync -f
Manage mirrors
$ torii mirror set-primary github PaskiDev $ torii mirror remove gitlab paskidev # Auto-fetch from master $ torii mirror autofetch --enable $ torii mirror autofetch --interval 30m $ torii mirror autofetch --status $ torii mirror autofetch --disable
Platform tokens
Set once globally โ mirrors use them automatically.
$ torii config set auth.github_token YOUR_TOKEN $ torii config set auth.gitlab_token YOUR_TOKEN