Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
losing all meta data
Avatar
HansBKK #1
Member since Nov 2011 · 104 posts · Location: Bangkok
Group memberships: Members
Show profile · Link to this post
Subject: losing all meta data
Specific questions this time 8-)

Q1: Is it possible to (manually or automatically) trigger a full rebuild of the 'relation' 'references' and 'isreferencedby'?

If so, and based on my use case (warning - long!) http://forum.dokuwiki.org/thread/7677, and assuming this http://www.dokuwiki.org/devel:metadata is accurate,

(Q2: Is it?)

then it seems to me that there isn't anything important to me stored in the /meta dirstruc by DW's core code.

The plugins that write there (again assuming the above doc is accurate and complete) all seem to get their data from within the /data content itself, so presumably automatically rebuild when needed.

Q3: Is that true?

Therefore, since I don't care about revision history, when I need to refactor my text files outside of DW - rename files, rename/split/merge namespace directories etc, I could just

rm -rf /meta and /attic

and then rebuild the meta data and all will be hunky dory.

Q4: How should I trigger such a full rebuild, or is it the same as Q1?

Thanks much in advance for your help. . .
This post was edited on 2011-12-21, 14:55 by andi.
Avatar
HansBKK #2
Member since Nov 2011 · 104 posts · Location: Bangkok
Group memberships: Members
Show profile · Link to this post
Answering my own questions for googler's posterity, based on some initial experimentation and googling, corrections welcome.

> Is it possible to (manually or automatically) trigger a full rebuild of the 'relation' 'references' and 'isreferencedby'?

These backlink structures are re-constructed automatically as individual pages are browsed, so you could use a spidering tool to bulk rebuild them, and it looks to me like running bin/indexer.php from the CLI does the job, so presumably http://www.dokuwiki.org/plugin:searchindex does as well.

All other data written to the /meta folders, both by core and plugins, all seem to be similarly rebuilt from other sources,

> assuming this http://www.dokuwiki.org/devel:metadata is accurate

so at least as far as I'm concerned, there's nothing important lost by wiping it. Same goes for the index, presumably /tmp and for my use case, (warning - long! http://forum.dokuwiki.org/thread/7677), I personally don't care about revision history stored in /attic either.

Therefore when I need to refactor my text files outside of DW - rename pages, rename/split/merge namespace/directories etc, it seems that from the /data directory, I can just

sudo rm -rf attic/*
sudo rm -rf cache/*
sudo rm -rf index/*
sudo rm -rf meta/*
sudo rm -rf tmp/*
And I'll get a nice kruft-free DokuWiki instance containing nothing but my data files. Of course, as I try out the various cross-referencing/ToC/indexing etc tools, I may find problems, but my ability to freely refactor my data is important enough I'll probably only choose plugins/methods that work within this context.

So until DW officially supports the ability to easily rename page/files and namespace/folders within the UI, this seems to be a doable workaround **for me** - of course, my needs are certainly an edge case, I'm not advocating this for others etc etc.

And if any of you more knowledgeable folk out there have any comments on this, please speak up.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-07-19, 13:41:52 (UTC +02:00)