[dokuwiki] Re: moving pages without losing their history

On the internal dokuwiki site at work, I have terminal access to the
server where I created the attached script file some time last year.
The script file resides in the dokuwiki/bin/ directory, and I use it
thus:


me@server:/mnt/raid/dokuwiki/data/pages# ../../bin/move_file.sh
original/namespace/directory file_name_without_txt_ext
new/namespace/directory new_file_name_without_txt_ext



This will move the dokuwiki document:

"original:namespace:directory:file_name_without_txt_ext"
(stored as 
/mnt/raid/dokuwiki/data/pages/original/namespace/directory/file_name_without_txt_ext.txt)

to:

"new:namespace:directory:new_file_name_without_txt_ext"
(stored as 
/mnt/raid/dokuwiki/data/pages/new/namespace/directory/new_file_name_without_txt_ext.txt)

it also modifies the change log file accordingly and moves any
archived change history.

It would be good to be able to do the same from an admin plugin, but I
don't have the time to write one. This quick and dirty hack was enough
to satisfy the needs of my manager, so it's stayed.

HTH

Paul W

Other related posts: