dokuwiki-plugin-gitbacked icon indicating copy to clipboard operation
dokuwiki-plugin-gitbacked copied to clipboard

Add old revisions?

Open kaerf opened this issue 12 years ago • 6 comments
trafficstars

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

kaerf avatar Feb 03 '13 16:02 kaerf

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

woolfg avatar Feb 08 '13 17:02 woolfg

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

danny0838 avatar Oct 28 '13 05:10 danny0838

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.

4001982248998 avatar Feb 13 '18 15:02 4001982248998

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.

danny0838 avatar Feb 18 '18 01:02 danny0838

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?

4001982248998 avatar Feb 19 '18 08:02 4001982248998

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.

danny0838 avatar Feb 20 '18 15:02 danny0838