Skip to content

Python script that will clone all repos owned by the user token, private and public, or pull in any updates if the repo is already cloned.

License

Notifications You must be signed in to change notification settings

SmileyJoe/github_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github backup

Python script that will clone all repos owned by the user token, private and public, or pull in any updates if the repo is already cloned.

Note: This is meant as a backup, the repos it clones should not be updated as there is nothing in place to handle conflicts or to push up changes

Setup

  • Copy example_config.yaml into app/ and rename it to config.yaml
  • Update config.yaml with your keys/settings
  • See here for generating a github token
  • For the pushover api token, a new app will need to be registered here

Docker

  • Update Dockerfile and docker-compose.yml to reference the local directory the repos will be cloned to
  • Run the container with docker-compose up -d

Without docker

  • Install the requirements with pip install -r requirements.txt
  • Run with python app/main.py

Running on a Synology NAS

  • Install docker from package center
  • Install git server from package center
  • Clone the repo using ssh, more info here
  • Follow the setup instructions with docker

Translations

  • Copy a language file, rename the 2 letter code and translate it, the file can them be specified in config.yaml

Libraries

About

Python script that will clone all repos owned by the user token, private and public, or pull in any updates if the repo is already cloned.

Resources

License

Stars

Watchers

Forks