Post An2LXxX4GULy5H8CsC by shironeko@fedi.tesaguri.club
 (DIR) More posts by shironeko@fedi.tesaguri.club
 (DIR) Post #An2LXwbzgghREGQcue by TechTangents@dialup.space
       2024-10-15T16:10:09Z
       
       0 likes, 0 repeats
       
       Does anyone have recommendations for locally archiving git repos automatically that are also resilient against the original repo being nuked by the owner? A cronjob with `git pull` or simple mirror with something like gitea (https://github.com/go-gitea/gitea/issues/14076) will copy any destructive changes as well.I know https://www.softwareheritage.org/ exists and is similar. But you can only download files from individual commits, not a whole repo from what I see.
       
 (DIR) Post #An2LXxX4GULy5H8CsC by shironeko@fedi.tesaguri.club
       2024-10-15T17:06:34.341536Z
       
       0 likes, 0 repeats
       
       @TechTangents git pull wouldn't delete stuff automatically I would think? if the local copy diverges from the remote it would ask you want to do right?
       
 (DIR) Post #An2LzLWl9z1qK22w8O by kamehamic@poa.st
       2024-10-15T17:11:32.708939Z
       
       0 likes, 1 repeats
       
       @TechTangents borg (borgbackup.readthedocs.io/en/stable/quickstart.html or some other deduplication software). Create an additional git repo for each repo and commit the whole OG repo after each git pull (which I think it does something similar to what borg would do).
       
 (DIR) Post #An2M1dDWMS0tlU8ZrU by shironeko@fedi.tesaguri.club
       2024-10-15T17:11:56.305796Z
       
       0 likes, 0 repeats
       
       @TechTangents something likegit pull --ff-only, and if it failed, make a tag for the current HEAD and then reset the local branch to track the new remote branch. This way every commit that ever was in the branch will be kept alive by the tags and never GCed
       
 (DIR) Post #An2MseGLCkLaM5jk6i by TechTangents@dialup.space
       2024-10-15T17:20:00Z
       
       0 likes, 0 repeats
       
       @grawity I'm trying to research this more but I'm not finding a ton of info and may need to make a synthetic test repo to understand it.Based on what you're saying, if a remote deletes a file using something like: https://git-scm.com/docs/git-filter-branch the local copies would stay and just be orphaned? I would still need to do something to keep a copy of the original commits though to know what files are left?
       
 (DIR) Post #An2Su1lbtv5fGdP5EW by developing_agent@mastodon.social
       2024-10-15T18:16:52Z
       
       1 likes, 0 repeats
       
       @TechTangents Software Heritage are also kind of a bunch transphobic dicks. https://cohost.org/arborelia/post/4968198-the-software-heritag