woolfg / dokuwiki-plugin-gitbacked

Plugin for DokuWiki to store/sync files and media with a git repo
GNU General Public License v2.0
74 stars 26 forks source link

Add old revisions? #6

Open kaerf opened 11 years ago

kaerf commented 11 years ago

Is there a way of adding all old revisions in an existing installation?

woolfg commented 11 years ago

Do you mean to add all dokuwiki revs as git commits? Such a feature is currently not available but I would be very happy if you want to develop such a feature and can provide some help as well

danny0838 commented 11 years ago

This feature is added in my enhancement version #12. Use importer for it.

4001982248998 commented 6 years ago

Is the importer since deprecated, and dokuwiki2git the recommended way to git-import existing wiki articles into the git repo? The situation is unclear to me and documentation little.

danny0838 commented 6 years ago

I now personally use dokuwiki2git to import the history data of DokuWiki into a Git repository. I've also made a fork with some modification to support incremental importing.

4001982248998 commented 6 years ago

I tried your fork, but am getting these errors (unfortunately I cannot comment on the fork's site):

09:37 $ ./dokuwiki2git ~/var/dokuwiki/dokuwiki/data
PHP Warning:  require_once(/home/u/var/dokuwiki/dokuwiki/data/inc/init.php): failed to open stream: No such file or directory in /home/u/opt/dokuwiki2git/dokuwiki.php on line 5
PHP Fatal error:  require_once(): Failed opening required '/home/u/var/dokuwiki/dokuwiki/data/inc/init.php' (include_path='.:/usr/share/pear') in /home/u/opt/dokuwiki2git/dokuwiki.php on line 5
ERROR - Unable to read php scripts from the specified dokuwiki directory

09:40 $ php dokuwiki.php ~/var/dokuwiki/dokuwiki/data
PHP Warning:  require_once(/home/u/var/dokuwiki/dokuwiki/data/inc/init.php): failed to open stream: No such file or directory in /home/u/opt/dokuwiki2git/dokuwiki.php on line 5
PHP Fatal error:  require_once(): Failed opening required '/home/u/var/dokuwiki/dokuwiki/data/inc/init.php' (include_path='.:/usr/share/pear') in /home/u/opt/dokuwiki2git/dokuwiki.php on line 5

What might I be doing wrong?

danny0838 commented 6 years ago

It seems that the path of dokuwiki is not correct. Also note that the latest version of my fork is in the devel branch rather than master.