]> scripts.mit.edu Git - www/ikiwiki.git/blob - doc/forum/Migrating_old_repository_to_new_ikiwiki_system__63__.mdwn
ccc45ddca8c4862b084542279c1be4ea11f888e9
[www/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 > 1. Manually set up a bare git repository, and push
17 >    your backed up repository to it.
18 > 2. `git clone` from the bare git repository to 
19 >    recreate the ikiwiki srcdir
20 > 3. `git clone` from the bare git repository a second time,
21 >    to create a checkout you can manually edit (optional)
22 > 4. run `ikiwiki --getctime --setup your.setup`
23 >    The getctime will ensure page creation times are accurate
24 >    by putting the info out of the git history,
25 >    and only needs to be done once.
26 >
27 > If you preserved your repository, but not the setup file,
28 > the easiest way to make one is probably to run
29 > `ikiwiki -dumpsetup` and edit the setup file. --[[Joey]]