Menu

#31 Ability to disable backing up of forks

open
nobody
None
2015-04-01
2015-01-05
Anonymous
No

Originally created by: nurupo

I'm backing up several repos (96 repos as of now). I have put github-backup in cron to run every 3 hours (mostly because I noticed that on average it was running for about 2h 50min before terminating) starting from 1st of January till today, which is about 32-40 runs in total, but it still can't keep up with repos.

Just today, four days later, it got to backing up my own fork of one of repos, creating all the branches I have in my fork (i.e. it's the very first backup of my fork) -- it's still isn't finished with the initial backup of forks. Also, the original repos are out of date -- code commited and pushed on 2nd of January is not yet pulled.

I would rather want it to keep only the starred repos up to date and forget about automatically backing up forks. If I would want it to backup a fork, I would separately star it (which leads to another issue, since I would have two starred repos with the same name, which might break github-backup).

Discussion

  • Anonymous

    Anonymous - 2015-01-24

    Originally posted by: nurupo

    Actually, ignore the part of github-backup not being able to keep up with repos, I noticed a bit later that repos are actually up to date (the origin/master branch gets updated). Didn't check issues and comments, just git commits. Apparently I had to manually git merge origin/master into master, which I thought would be done automatically for me.

    But the option to disable forks is still relevant.

     
  • Anonymous

    Anonymous - 2015-03-31

    Originally posted by: thkoch2001

    +1 I had a fork of https://github.com/nylira/prism-break which has just a few hundret forks, which is not much for a popular repository. But most of the forks are just kind of 'bookmarks' with no added information. Fetching all this forks takes ages.

    I'm afraid that the github API doesn't help to filter only interesting forks.

     
  • Anonymous

    Anonymous - 2015-04-01

    Originally posted by: thkoch2001

    The (forks api response)[https://developer.github.com/v3/repos/forks/] has two fields, created_at and pushed_at. It seems, that pushed_at is less or equal to created at if nothing new has been pushed to the fork.

    I don't know the semantic of the updated_at field. Maybe it's about wiki and issues? I've seen cases of Updated_at field less than, equal to and greated than created_at.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.