r4 - 27 Jul 2007 - 07:42:56 - KirstinWeberYou are here: TWiki >  Support Web > LockWholeWiki
Tags:
, create new tag
NOTE: Edit and Attach will be disabled today between 05:00 PM and 06:00 PM PDT (00:00 to 01:00 GMT) for a scheduled TWiki maintenance.

Question

  • We want to move our wiki from one server to another.
  • How can we easily lock the whole wiki? We do not want anybody to loose changes if somebody is just editing when we are moving the wiki.
  • Can we recognize which topis are in edit mode?
  • Can we block the edit script?
  • Thanks for your help.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat? Linux
Web server: Apache
Perl version: 5.8
Client OS: MS Windows
Web Browser: Internet Explorer 6, Firefox
Categories: Hosting
-- KirstinWeber - 25 Jul 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

A very simple solution might be to post on the main page of your wiki that the server will be down for maintenance at a certain time (i.e. early in the morning / late in the evening). You can change the preferences of each web so that only TWikiAdmins? can log in - thus preventing people from viewing any information / editing any information. Then switch back the user rights later on. An example of the configuration you may want to do in WebPreferences could be:

Set DENYWEBVIEW = 
Set ALLOWWEBVIEW = TWikiAdminGroup 
Set DENYWEBCHANGE = 
Set ALLOWWEBCHANGE = 
Set DENYWEBRENAME = 
Set ALLOWWEBRENAME = 
-- BrianMahoney - 25 Jul 2007

You could use the following in Main.TWikiPreferences to display a message at the top of each page:

  • Set BROADCASTMESSAGE =
    NOTE: Edit and Attach will be disabled today between 05:00 PM and 06:00 PM PDT (00:00 to 01:00 GMT) for a scheduled TWiki maintenance.

Assuming your skin supports that.

You could also use Apache to deny access to the edit and attach scripts, which might be easier if you have a lot of webs and don't want to set the preferences of each one.

-- AndrewRJones - 26 Jul 2007

Thanks for your help.

-- KirstinWeber - 27 Jul 2007

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo