An open API service indexing awesome lists of open source software.

https://github.com/abbgrade/zip2git

zip2git converts a set of backups in zip archives into a git repository
https://github.com/abbgrade/zip2git

Last synced: 3 months ago
JSON representation

zip2git converts a set of backups in zip archives into a git repository

Awesome Lists containing this project

README

          

# zip2git

zip2git converts a set of backups in zip archives into a git repository.

## Contribution

For questions or improvements visit [the GitHub Page](https://github.com/abbgrade/zip2git).

## Requirements

It uses PythonGit, which requires a git installation.
Under Windows an entry for git in the PATH variable is necessary.

## Usage

zip2git uses two directories. One that contains the backup zip archives and another restore directory that will contain the git repository.
The contents of the restore directory will be deleted in runtime.
The backup archive filenames need to have the backuped directory name as prefix to the first underscore. If your file schema is different you have to change this script.

### Example

Backup
- scripts_20150716.zip
- scripts_20150717.zip
- scripts_20150718.zip
- docs_20150716.zip
- docs_20150717.zip
- docs_20150718.zip

Will be converted to a git repository like:

Restore
- scripts
- a
- b
- docs
- x
- y

## Documentation

The documentation uses pycco.
Generate it with the following command:

python ..\pycco\pycco\main.py -d .\doc .\zip2git.py