]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Migrating_old_repository_to_new_ikiwiki_system__63__.mdwn
ugh, this is not a Markdown page
[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 > 4. run `ikiwiki --getctime --setup your.setup`
24 >    The getctime will ensure page creation times are accurate
25 >    by putting the info out of the git history,
26 >    and only needs to be done once.
27 >
28 > If you preserved your repository, but not the setup file,
29 > the easiest way to make one is probably to run
30 > `ikiwiki -dumpsetup` and edit the setup file. --[[Joey]] 
31
32 > > I get the following errors after running ikiwiki setup:
33
34     shortcut plugin will not work without shortcuts.mdwn
35     shortcut plugin will not work without shortcuts.mdwn
36     successfully generated /home/turian/public_html/iki/ikiwiki.cgi
37     shortcut plugin will not work without shortcuts.mdwn
38     successfully generated /home/turian/repos/iki.git/hooks/post-update
39     Can't stat /usr/share/ikiwiki/basewiki/../javascript: 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/../smiley: No such file or directory
42      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Plugin/autoindex.pm line 60
43     Can't stat /usr/share/ikiwiki/basewiki: No such file or directory
44      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Plugin/autoindex.pm line 60
45     Can't stat /usr/share/ikiwiki/basewiki/../javascript: No such file or directory
46      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
47     Can't stat /usr/share/ikiwiki/basewiki/../smiley: No such file or directory
48      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
49     Can't stat /usr/share/ikiwiki/basewiki: No such file or directory
50      at /home/turian/utils//lib/perl5/site_perl/5.8.8//IkiWiki/Render.pm line 320
51     internal error: smileys.mdwn cannot be found in /home/turian/iki or underlay
52
53 > > How do I resolve these errors? I have my PERL5LIB location set correctly.
54
55 >>> Well, that's unrelated to the original question, but
56 >>> I guess you should set `underlaydir` in your setup file to
57 >>> point to whereever you have installed the basewiki directory.
58 >>> --[[Joey]]