Skip to content

Automatically clones or mirrors for backup the repositories specified in the configuration file

License

Notifications You must be signed in to change notification settings

dubniczky/Git-Backup

Repository files navigation

Git Repository Auto Backup

Automatically clones and backs up all repositories specified in the given configuration file.

Support ❤️

If you find the project useful, please consider supporting, or contributing.

"Buy Me A Coffee"

Usage

Using this project requires python3 and pip to be installed.

Automake GNU is recommended, otherwise enter the commands detailed in Makefile manually.

Quick Start

make

Manual Installation

Install dependencies

make install

Run script

First, edit: /config.yml

Run script from terminal

make run

Run tests

Run python linter

make lint

Run python tester

make test

Run lint and test

make auto

Misc Commands

Clean up pycache

make clean

Install app as a cronjob

Edit cron.sh to specify run frequency and targets.

Move the project to it's final location before installing the cronjob.

make cron