mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-24 23:05:53 +03:00
[GH-ISSUE #84] [Question] What will happen in case of Code Rot #41
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tailscale-VPS on GitHub (Aug 29, 2025).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/84
Originally assigned to: @arunavo4 on GitHub.
Using these options -
It will delete any repo not stared or forked in github, But what will happend let's say one day the owner of the repo deleted their repo.
In this case it will not be able to fine the repo on github also if there's no repo then no star logic also. Will it delete the repo from gitea also in that case?
@Tailscale-VPS commented on GitHub (Aug 30, 2025):
Tested myself and it's as suspected , if the owner of the repo by any chance deletes the repo or its gets banned,etc u will loose your backup in gitea also.
So this is a reminder for other people also who are using
We need to use
@arunavo4 But when i tested the above i got this error
@arunavo4 commented on GitHub (Aug 30, 2025):
@Tailscale-VPS Thank you for testing this senario. You have been a huge help testing out this app. I will work on this next week.
@Tailscale-VPS commented on GitHub (Aug 30, 2025):
No problem, take your time.
It's my pleasure, I'm not a coder but being tester and suggestor is the least i can do to contribute to this fantastic app.
@arunavo4 commented on GitHub (Sep 7, 2025):
@Tailscale-VPS Hi please try out v3.5.2
@Tailscale-VPS commented on GitHub (Sep 7, 2025):
@arunavo4 Tested v3.5.3 and found this -
@arunavo4 commented on GitHub (Sep 14, 2025):
@Tailscale-VPS Can you try
v3.7.1I have added a few things that should help.@Tailscale-VPS commented on GitHub (Sep 14, 2025):
@arunavo4 Tested v3.7.1
New issue
Sync Time interval
When a repo is archived its sync frequency is reduced to yearly (1y), it's a good workarround for now , but i believe it can cause issues when the time of sync will come (assuming the owner has deleted the github repo/code rot)
What we can do -
@arunavo4 commented on GitHub (Sep 14, 2025):
@Tailscale-VPS whats the original name of the repo?
I think for archived repo stop sync and have the ability to manually start syncing would be best
@Tailscale-VPS commented on GitHub (Sep 14, 2025):
@arunavo4 The original name was test, but for the above it's test-Tailscale-VPS-3
Because when i recreated the container for clean setup i havent deleted the repos from gitea (Will be opening a new issue later ,found something about minimum sync interval should be > 5min, else it will fail and make unwanted repos in gitea)
@CrazyWolf13 commented on GitHub (Oct 22, 2025):
Is this configurable via webinterface yet? I'm interested in this too, I don't want it removing repositories from forgejo when accidentally deleting it on github, that's exactly why I have this tool, I though this is already the default!
CLEANUP_DELETE_IF_NOT_IN_GITHUB=true
CLEANUP_ORPHANED_REPO_ACTION=archive
@arunavo4 commented on GitHub (Oct 22, 2025):
@CrazyWolf13 default is set to archive now and currently its not configurable in web ui but will add it soon as I think its something that should be there but again now its default archive so dont have to worry about that part.
@arunavo4 commented on GitHub (Oct 22, 2025):
@CrazyWolf13 try out v3.8.6 adds UI in the
Config -> Automatefor the Orphaned repo and defaults are archive and @Tailscale-VPS I have added manual sync for archived repos by default.@CrazyWolf13 commented on GitHub (Oct 22, 2025):
awesome!
@arunavo4 commented on GitHub (Oct 22, 2025):
Closing this for now feel free to reopen if anything else is pending or open a new issue