GitHub saver for stargazers, forks, repos

Overview

GitHub backup repositories

Save your repos and list of stargazers & list of forks for them. Pure python3 and git with no dependencies to install.

GitHub API Documentation

Title GitHub Backup
Author Alexander Kapitanov
Sources Python3
Contact <hidden>
Release 16 Apr 2022
License MIT

Command line arguments

usage: backup.py [-h] -u USER_LOGIN [-t USER_TOKEN] [--user_forks] [-v] [-f] \
[--forks] [--stars] [--save | --clone] [--bare] [--recursive] [--starred] [-p SAVE_PATH] \
[-l REPO_LIST [REPO_LIST ...]]

GitHub saver for stargazers, forks, repos.

optional arguments:
  -h, --help            show this help message and exit
  -u USER_LOGIN, --user_login USER_LOGIN
                        User login
  -t USER_TOKEN, --user_token USER_TOKEN
                        User access token
  --user_forks          Save forked repos by user
  -v, --verbose         Logging level=debug
  -f, --force           Force save
  --forks               Save list of forks
  --stars               Save list of stargazers
  --save                Save repos to `save_path`
  --clone               Clone repos to `save_path`
  --bare                Clone a bare git repo
  --recursive           Recursive submodules
  --starred             Get repositories starred by user
  -p SAVE_PATH, --save_path SAVE_PATH
                        Save path to your repos
  -l REPO_LIST [REPO_LIST ...], --repo_list REPO_LIST [REPO_LIST ...]
                        List of repos to clone or to save

Save list of stargazers to {user_login}_stargazers.json:

python backup.py -u USER -t TOKEN --stars

Save list of forks to {user_login}_forks.json

python backup.py -u USER -t TOKEN --forks

Download repos to save_path

python backup.py -u USER -t TOKEN --repos -p ~/backups

Clone repos to save_path

python backup.py -u USER -t TOKEN --clone -p ~/backups

You might also like...
Fetch PRs from GitHub and analyze which ones are unmergeable

Set up token Generate a personal access token on GitHub. Add repo permissions. export GH_TOKEN="abcdefg" Pull PR data make Usually, GitHub doesn't h

ChainJacking is a tool to find which of your Go lang direct GitHub dependencies is susceptible to ChainJacking attack.
ChainJacking is a tool to find which of your Go lang direct GitHub dependencies is susceptible to ChainJacking attack.

ChainJacking is a tool to find which of your Go lang direct GitHub dependencies is susceptible to ChainJacking attack.

A service to display a quick summary of a project on GitHub.
A service to display a quick summary of a project on GitHub.

A service to display a quick summary of a project on GitHub. Usage 📖 Paste the code below with details filled in as specified below into your Readme.

Simply create JIRA releases based on your github releases

Simply create JIRA releases based on your github releases

Add your recently blog and douban states in your GitHub Profile

Add your recently blog and douban states in your GitHub Profile

A Github Action for sending messages to a Matrix Room.
A Github Action for sending messages to a Matrix Room.

matrix-commit A Github Action for sending messages to a Matrix Room. Screenshot: Example Usage: # .github/workflows/matrix-commit.yml on: push:

Python script to commit to your github for a perfect commit streak. This is purely for education purposes, please don't use this script to do bad stuff.

Daily-Git-Commit Commit to repo every day for the perfect commit streak Requirments pip install -r requirements.txt Setup Download this repository. Cr

Auto check in via GitHub Actions

因为本人毕业离校,本项目交由在校的@hfut-xyc同学接手,请访问hfut-xyc/hfut_auto_check-in获得最新的脚本 本项目遵从GPLv2协定,Copyright (C) 2021, Fw[a]rd 免责声明 根据GPL协定,我、本项目的作者,不会对您使用这个脚本带来的任何后果

A script to add issues to a project in Github based on label or status.

Add Github Issues to Project (Beta) A python script to move Github issues to a next-gen (beta) Github Project Getting Started These instructions will

Owner
Alexander Kapitanov
ex. FPGA Engineer, Data Scientist
Alexander Kapitanov
A python tool that creates issues in your repos based on TODO comments in your code

Krypto A neat little sidekick python script to create issues on your repo based on comments left in the code on your behalf Convert todo comments in y

Alex Antoniou 4 Oct 26, 2021
GitHub Actions Version Updater Updates All GitHub Action Versions in a Repository and Creates a Pull Request with the Changes.

GitHub Actions Version Updater GitHub Actions Version Updater is GitHub Action that is used to update other GitHub Actions in a Repository and create

Maksudul Haque 42 Dec 22, 2022
Automated GitHub profile content using the USGS API, Plotly and GitHub Actions.

Top 20 Largest Earthquakes in the Past 24 Hours Location Mag Date and Time (UTC) 92 km SW of Sechura, Peru 5.2 11-05-2021 23:19:50 113 km NNE of Lobuj

Mr. Phantom 28 Oct 31, 2022
Dicionario-git-github - Dictionary created to help train new users of Git and GitHub applications

Dicionário ?? Dicionário criado com o objetivo de auxiliar no treinamento de nov

Felippe Rafael 1 Feb 7, 2022
A script to automatically update bot status at GitHub as well as in Telegram channel.

A simple & short repository to show your bot's status in your GitHub README.md file as well as in you channel.

Jainam Oswal 55 Dec 13, 2022
Replit theme sync; Github theme sync but in Replit.

This is a Replit theme sync, basically meaning that it keeps track of the current time (which may need to be edited later on), and if the time passes morning, afternoon, etc, the theme switches. The idea came from GitHub's theme sync. Except this is a separate program, not attached to Replit.

Glitch 8 Jun 25, 2022
Why write code when you can import it directly from GitHub Copilot?

Copilot Importer Why write code when you can import it directly from GitHub Copilot? What is Copilot Importer? The copilot python module will dynamica

Mythic 41 Jan 4, 2023
tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel

tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel. This project is inspired by tox-travis.

tox development team 19 Dec 26, 2022
Github dorking tool

gh-dork Supply a list of dorks and, optionally, one of the following: a user (-u) a file with a list of users (-uf) an organization (-org) a file with

Molly White 119 Dec 21, 2022
github action test, because I dont know it.

mad-y testing testing pip install -r requirements.txt add the DISCORD_TOKEN value to your env vars. and run mad-y how to Deploy ` docker build -t mad-

Mit 1 Oct 29, 2021