Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [11-2006 Date Index] [Date Next] || [Thread Prev] [11-2006 Thread Index] [Thread Next]

[dokuwiki] Re: Moving an entire namespace?

  • From: Ben Coburn <btcoburn@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 7 Nov 2006 13:59:51 -0800

On Nov 7, 2006, at 1:11 PM, Daniel Mitchell wrote:

 What's the best way to do this? I know there's the "move" plugin, but
that's only for a page at a time.

My current plan is, for the top-level 'thing' namespace, to just do 'mv
thing projects/thing' in the data directory -- I know this will break
absolute links within that namespace, and links from other namespaces
will break, but we can always patch that up later on.

 What I'm mostly concerned about is not breaking the wiki itself --
currently, I know I'll have to move:

 data/pages/thing to data/pages/projects/thing
 data/media/thing to data/media/projects/thing
 data/attic/thing to data/attic/projects/thing

 What about data/metadata? If I move that, will it just cause more
trouble than it's worth? I also suspect the search index will be broken
for those pages until I reindex or manually visit them; that's fine, I
can do that if necessary. What about the cache?

 Also, I suppose I should really check in data/locks to make sure I
don't kill anyone's existing edit, but I can probably just do things out
of work hours to avoid that.

 What about changes.log? And as I'm still running the last release of
dokuwiki, would it be better to do these moves _then_ upgrade, or do the
upgrade and then move things around before the new version gets started
with the new metadata/etc? Maybe install a fresh new version and just
copy pages/media/attic over? I'm looking at moving a couple of thousand
pages over a dozen or so namespaces, so I don't want to have anything go
wrong here..


Upgrade then move stuff. That will split the changelog into *.changes files in the data/meta/ directory. Just remember to also move:

data/meta/thing to data/meta/projects/thing

I don't know if there is anything path specific in the *.meta files. If you are concerned about it, just delete the *.meta files under data/meta/projects/thing after the move. The meta files will be regenerated with the correct info.

Obviously, remember to back up the whole data directory before moving things. The will make it *easyer* to retry or recover from your changes as needed!

You may also notice that the "recent changes" point to the old files. It should be possible to replace "thing" with "projects:thing" (no quotes) in the data/meta/_dokuwiki.changes file.

Regards, Ben Coburn


-------------------
  silicodon.net
-------------------

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.