]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Migrating_old_repository_to_new_ikiwiki_system__63__.mdwn
98ee723f09c2cac1f522c059183bb073505a808d
[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]]