SID-00802: Best way to rename Main web
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
5.10 |
| Category: |
CategoryInstallation |
Server OS: |
Debian Lenny |
Last update: |
15 years ago |
I Need to replace my main web by renaming it to something else. So far I install a second wiki then rename the main web in the old wiki, and copy the new main to the old wiki. That does not work because I get all kinds of errors after loging in. Is there a better way?
Thanks,
Zak
--
ZakaiKinan - 2010-04-01
Discussion and Answer
Hi,
Why dont you try "cp -rp" command? This should be done in single installation of TWiki
Example:
cd {TWIKI_ROOT} directory
cp -rp data/Main data/Oldmain
cp -rp pub/Main data/Oldmain
These commands will make copy of Main web.
--
SopanShewale - 2010-04-01
I do want to put the contents of main in a different web. Twiki needs a main web so I need to recreate a virgin one for my site. That is what I am trying to figure out how to do. i tried to simply rename the main web and get a virgin one from a new installation, but that did not work.
TIA,
--
ZakaiKinan - 2010-04-03
In theory this isn't very hard: rename data/Main to data/User, and change $mainWebname variable in lib/TWiki.cfg file. Signatures in all existing topics need to be fixed as well (use
GlobalReplacePlugin?). However I've found that this complicates upgrades, because the updated versions assume that the old name is in use.
For other tips, including arguments pro and con, also see:
--
SeanCMorgan - 2010-04-07
I am closing this question; thanks Sean for the detailed answer.
--
PeterThoeny - 2010-04-07
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.