[dokuwiki] Re: moving pages without losing their history
- From: "Paul Webster" <pjwebster@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 20 Feb 2007 17:22:26 +1000
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
- Follow-Ups:
- [dokuwiki] Re: moving pages without losing their history
- From: Paul Webster
- [dokuwiki] Re: moving pages without losing their history
- From: Sander Tekelenburg
Other related posts:
- » [dokuwiki] moving pages without losing their history
- » [dokuwiki] Re: moving pages without losing their history
- » [dokuwiki] Re: moving pages without losing their history
- » [dokuwiki] Re: moving pages without losing their history
- [dokuwiki] Re: moving pages without losing their history
- From: Paul Webster
- [dokuwiki] Re: moving pages without losing their history
- From: Sander Tekelenburg