derhasi/redmine-to-git

Push redmine data to a git repositry

0.1.0 2014-10-28 09:23 UTC

This package is not auto-updated.

Last update: 2024-11-05 03:02:31 UTC


README

This tool uses the Redmine REST API for fetching data from a specific project and push that to a git repository.

Currently only wiki pages are supported.

Installation

The installation is simple by using composer. After installing composer you can either install the command globally or within a project.

Global

In the global installation redmine-to-git will be available as a command line tool.

  • Run composer global require derhasi/redmine-to-git to install globally.
  • Add export PATH=~/.composer/vendor/bin:$PATH to your .bashrcor .profile

After the installation you should be able to run redmine-to-git wiki ... from anywhere.

Local

You can run composer require derhasi/redmine-to-git in any composer enabled project to add this project as a dependency.

Usage

Currently the command is ...

php redmine-to-git.php wiki redmine apikey project repo --subdir=subdir --maxFilesize=1234

  • redmine: URL of your Redmine installation
  • apikey: API Key for accessing the redmine API
  • project: Machine name of the Project to grab the wiki from
  • repo: path to git working directory
  • subdir: optional subdirectory to put files and index to
  • maxFilesize: optional maximum filesize for attachments to download

Type php redmine-to-git.php help wiki for additional information.

Help

The project is hosted on github, so please file any issues or questions in the Issue Queue.