Tags:
create new tag
view all tags

Question

Created a bunch of topics under 1 web and want to move it to antoher. Is there a way to mass move topics?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Topic revisions

-- AnthonyGrieco - 07 Apr 2005

Answer

This is the kind of think I currently do regularly just using an ftp program or ssh session. TWiki doesn't seem to mind just physically moving your topic files from one web directory to another.

-- LynnwoodBrown - 07 Apr 2005

The one thing you have to remember is to look for Attachment directories under /pub. If there are attachments associated with a topic, those have to be moved under the corresponding /pub/web name as well. remember to copy the rcs history files, too.

-- SteveRJones - 08 Apr 2005

Easiest to do that on the shell, with the right permissions:

% cd twiki/data
% mv Oldweb/TopicA.* Old/TopicB.* Old/TopicC.* Newweb
% cd twiki/pub
% mv Oldweb/TopicA Old/TopicB Old/TopicC Newweb

The last mv will complain if there are no attachments on all topics (which is usually the case). Also notice that this will ignore potential edit locks by users, e.g. you might surprise a user who is editing a page you are moving away.

-- PeterThoeny - 08 Apr 2005

It also does not work if the renamed web had CrossWebLinks originating from other webs: these still point at the old name.

-- MartinCleaver - 08 Apr 2005

Can't the GlobalReplacePlugin help here too?

-- FranzJosefSilli - 08 Apr 2005

It certainly can but that's a bit of a chainsaw: too powerful for a simple task. Perhaps a BulkRenameTopic page can be created that uses the GRP for its implementation yet restricts the usage to a safe pattern of use.

-- MartinCleaver - 08 Apr 2005

thanks for the quick and helpful responses. shell access seems to be the easiest way to make these changes.

The thing that would really be nice to have is a way to move all topics that are "linked" together to another web. So..I had a bunch of topics that were kinda munged together. They were basically on 2 separate categories, each category with 10 or more topics that were not cross-linked. It would be nice to be able to move a "parent" topic and have it move all "children" topic within the web that refer to the parent. This could probably be done at the shell level with a little perl scripting...or maybe there is another way?

thanks

-- AnthonyGrieco - 11 Apr 2005

If you move a set of topics from one web to another, links within the set will continue to work, but links from or to those set of topics will break.

-- PeterThoeny - 11 Apr 2005

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2005-04-11 - 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.