]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Migrating_old_repository_to_new_ikiwiki_system__63__.mdwn
wishlist: ask about using ikiwiki as ML
[ikiwiki.git] / doc / forum / Migrating_old_repository_to_new_ikiwiki_system__63__.mdwn
1 How do I setup an old ikiwiki repository on a new system?
2
3 I have a git repository from an old ikiwiki system.
4 I reformatted that hard drive, but saved the repository.
5
6 I copied it the repository to my new system, which is now the "master" host.
7 I installed ikiwiki on the new system.
8
9 How do I set up an ikiwiki system using a pre-existing repository (instead of creating a new one)? --[[JosephTurian]]
10
11 > Well, if you have:
12 > * A git repository of the wiki
13 > * A setup file for the wiki
14 >
15 > Then you should:
16
17 > 1. Manually set up a bare git repository, and push
18 >    your backed up repository to it.
19 > 2. `git clone` from the bare git repository to 
20 >    recreate the ikiwiki srcdir
21 > 3. `git clone` from the bare git repository a second time,
22 >    to create a checkout you can manually edit (optional)
23 >
24 > If you preserved your repository, but not the setup file,
25 > the easiest way to make one is probably to run
26 > `ikiwiki -dumpsetup` and edit the setup file. --[[Joey]] 
27
28 > > I get the following errors after running ikiwiki setup:
29
30     shortcut plugin will not work without shortcuts.mdwn
31     shortcut plugin will not work without shortcuts.mdwn
32     successfully generated /home/turian/public_html/iki/ikiwiki.cgi
33     shortcut plugin will not work without shortcuts.mdwn
34     successfully generated /home/turian/repos/iki.git/hooks/post-update
35     Can't stat /usr/share/ikiwiki/basewiki/../javascript: No such file or directory
36      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Plugin/autoindex.pm line 60
37     Can't stat /usr/share/ikiwiki/basewiki/../smiley: No such file or directory
38      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Plugin/autoindex.pm line 60
39     Can't stat /usr/share/ikiwiki/basewiki: No such file or directory
40      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Plugin/autoindex.pm line 60
41     Can't stat /usr/share/ikiwiki/basewiki/../javascript: No such file or directory
42      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
43     Can't stat /usr/share/ikiwiki/basewiki/../smiley: No such file or directory
44      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
45     Can't stat /usr/share/ikiwiki/basewiki: No such file or directory
46      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
47     internal error: smileys.mdwn cannot be found in /home/turian/iki or underlay
48
49 > > How do I resolve these errors? I have my PERL5LIB location set correctly.
50
51 >>> Well, that's unrelated to the original question, but
52 >>> I guess you should set `underlaydir` in your setup file to
53 >>> point to whereever you have installed the basewiki directory.
54 >>> --[[Joey]]