Tags:
create new tag
view all tags

SID-00802: Best way to rename Main web

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Best way to rename Main web
SupportCategory CategoryInstallation
TWiki version 4.2.0
Server OS Debian Lenny
Web server Apache 2.2.8
Perl version 5.10
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-04-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.