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
- Host: GitHub
- URL: https://github.com/abbgrade/zip2git
- Owner: abbgrade
- Created: 2015-07-19T09:57:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T19:48:22.000Z (almost 11 years ago)
- Last Synced: 2024-05-02T00:47:55.055Z (about 2 years ago)
- Language: Python
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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