]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/inside_dot_ikiwiki/discussion.mdwn
c05e7a3e02cf3ff70fd75314ff5be8d6801c8cbd
[ikiwiki.git] / doc / tips / inside_dot_ikiwiki / discussion.mdwn
1 My database appears corrupted:
2
3     $ perl -le 'use Storable; my $index=Storable::retrieve("indexdb"); use Data::Dumper; print Dumper $index'
4     Out of memory!
5
6 No idea how this happened.  I've blown it away and recreated it but, for future reference, is there any less violent way to recover from this situation?  I miss having the correct created and last edited times.  --[[sabr]]
7 > update: fixed ctimes and mtimes using [these instructions](http://u32.net/Mediawiki_Conversion/Git_Import/#Correct%20Creation%20and%20Last%20Edited%20time) --[[sabr]]
8
9 > That's overly complex. Just run `ikiwiki -setup your.setup -getctime`. 
10 > BTW, I'd be interested in examining such a corrupt storable file to try
11 > to see what happened to it. --[[Joey]]
12
13 >> --getctime appears to only set the last edited date.  It's not supposed to set the creation date, is it?  The only place that info is stored is in the git repo.
14
15 >>> Pulling the page creation date out of the git history is exactly what
16 >>> --getctime does. --[[Joey]]
17
18 >> Alas, I seem to have lost the bad index file to periodic /tmp wiping; I'll send it to you if it happens again.  --[[sabr]]