Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.59 KB

File metadata and controls

40 lines (27 loc) · 1.59 KB

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