https://github.com/dubniczky/git-backup
Automatically clones or mirrors for backup the repositories specified in the configuration file
https://github.com/dubniczky/git-backup
backup backup-script bitbucket git github gitlab migration migration-tool python utility-tool
Last synced: 3 months ago
JSON representation
Automatically clones or mirrors for backup the repositories specified in the configuration file
- Host: GitHub
- URL: https://github.com/dubniczky/git-backup
- Owner: dubniczky
- License: mit
- Created: 2022-07-23T11:14:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T11:36:47.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T13:33:03.686Z (about 1 year ago)
- Topics: backup, backup-script, bitbucket, git, github, gitlab, migration, migration-tool, python, utility-tool
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
[](https://www.buymeacoffee.com/dubniczky)
## 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
```bash
make
```
### Manual Installation
Install dependencies
```bash
make install
```
### Run script
> First, edit: `/config.yml`
Run script from terminal
```bash
make run
```
### Run tests
Run python linter
```bash
make lint
```
Run python tester
```bash
make test
```
Run lint and test
```bash
make auto
```
### Misc Commands
Clean up pycache
```bash
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.
```bash
make cron
```