welcome: please sign in

The following 364 words could not be found in the dictionary of 7 words (including 7 LocalSpellingWords) and are highlighted below:
00am   30s   4ae7   57ff   96ee   9d467a69   abbreviated   about   above   according   Add   add   administrator   all   also   an   And   and   another   appropriate   are   as   As   aspx   at   Automating   Avoid   avoid   b18c4790cffd   back   Backing   Backup   backup   Backups   backups   backupserver   backwards   bat   be   before   below   better   between   beyond   bother   break   Browse   built   but   call   can   case   Change   changing   Check   check   click   Click   com   come   commandline   commands   common   compatible   computer   console   control   Control   convenient   copied   copies   copy   Copy   could   course   crash   Create   create   created   creating   credentials   daily   data   default   deleted   destination   details   different   directories   directory   Display   displays   do   doc   document   documentation   does   doesn   domain   don   Download   downloads   drive   easily   Easy   editor   en   ending   errors   event   every   Everyone   exact   exactly   example   exclude   exe   Explained   extension   extensions   external   failed   Family   few   fewer   File   file   files   first   fixes   flexibility   folder   for   found   from   full   Full   Further   generally   get   Go   going   group   hard   has   have   here   hints   However   http   if   If   important   in   In   included   indicator   Inexplicably   install   installed   instead   into   is   it   It   itself   just   Kit   Lang   lengths   less   letter   like   Like   list   ll   locate   location   log   logging   logs   long   machine   maintains   make   match   means   microsoft   Microsoft   mimic   mirrors   modify   more   move   my   mywiki   Name   named   names   ndl   need   needed   network   networked   new   night   no   not   Notepad   number   occasionally   Of   of   off   offers   On   on   once   only   option   options   or   output   own   Panels   parameters   Parameters   password   pathname   pathnames   people   permissions   Pick   policy   Prerequisites   prior   progress   pyc   quickly   read   regular   relocate   Remove   Requirements   Resource   retries   right   rights   robocopy   Robocopy   Robust   robustness   rotating   routinely   Run   run   running   Save   say   Scheduled   scheduled   Scheduling   scope   script   Script   scripts   seconds   section   secure   see   select   separate   server   Set   set   Settings   share   shared   sharing   shortcomings   should   Show   similar   simple   simply   since   skip   slow   small   so   something   somewhere   sophisticated   source   spaces   specific   specifies   Start   step   steps   strategy   substitute   successfully   such   supercedes   suppresses   sure   syntax   Task   task   Tasks   text   than   that   The   the   their   them   these   they   This   this   time   to   too   tools   Tools   trick   turn   turned   turns   txt   typically   typing   up   use   user   username   Using   using   utility   version   versions   volume   wait   want   We   we   where   While   who   wiki   will   window   Windows   with   wizard   Workstation   worry   write   www   xcopy   you   your  

Clear message
Page Locked

HelpOnInstalling / Win32MoinEasyBackup

1. Easy Windows MoinMoin Backup

Backing up your wiki server is important, in case of an event like a hard drive crash. However, since the wiki maintains it's own built-in version control, we don't need to worry about a sophisticated rotating backup strategy. We just need the data files. A simple scheduled Windows .bat file script will do the trick.

1.1. Prerequisites & Requirements

  1. Download and install Microsoft's Windows Resource Kit Tools - While these tools say Windows 2003, they are backwards compatible. I successfully and routinely use these commands on Windows 2000 Workstation.

  2. We will be changing the extension of a file from .txt to .bat so it is important that you have "Show all file extensions" turned on.

1.2. Create a backup destination

We need a destination to copy these files. It should be a location separate from the server itself, so that you could quickly relocate the data to a new server if you need to. This could be a shared folder on a network computer, or an external USB drive. In the example below, I'm going to set up to back up to a networked volume. If you are using an external drive, simply substitute the drive letter (and, you get to skip the steps for creating a shared folder below).

Create a shared folder on a networked machine (different than your wiki server). The exact steps are beyond the scope of this document, but here's a few hints:

  1. Create a new folder, call it something appropriate like "wiki-backup". Avoid using spaces, as they can break the script.
  2. right-click on a new "wiki-backup" folder, select "sharing" and share the folder.
  3. On Windows XP, the default permissions are "read only". Remove the 'Everyone' group, and add a specific domain user such as domain\administrator (we'll use this user credentials below). Change the permissions to 'Full' for this user.
  4. Further secure the folder according to your network policy, if needed.

1.3. Create the Backup Script

We'll be using Robocopy from the Windows Resource Kit Tools that you installed from the Prerequisites section above. Robocopy is Microsoft's commandline utility that supercedes all prior versions of copy and xcopy commandline commands. Robocopy is abbreviated for Robust File Copy, and offers more copy options, more flexibility, fixes shortcomings in copy/xcopy (such as long pathname lengths), and of course offers better robustness. Inexplicably, it does not come with Windows.

  1. Using Notepad.exe or similar text editor, create a new file similar to below (you will have to modify the parameters to match your set-up (see Parameters Explained below)):
    d:\robocopy\robocopy.exe "d:\mywiki" "\\backupserver\wiki-backup\"  /LOG+:\\backupserver\logs\moin-backup.log /XF *.pyc /MIR /ndl /TEE /NP /R:10 /W:30s
  2. Save the file as "wiki-backup.bat" (make sure it doesn't have .txt, of course)

Parameters Explained:

Full Robocopy documentation can be found in the robocopy.doc included in the Resource Kit.

1.4. Automating (Scheduling) Backups

Of course, you'll want to make regular backups. Like, typically every night. ;-)

  1. Go to: Start > Settings > Control Panels > Scheduled Tasks

  2. Run the "Add Scheduled Task" wizard
    1. Click "Browse" and locate your .bat file you created above.
    2. Name the task ("wiki backup"), and set to run 'daily'. Pick a 'slow' time where fewer people will be using the wiki (like 5:00am).
    3. Set the username and password of the user who has rights to the backup folder (see step 3 in the "Create a backup destination" section above).

And, that's it! Run the script to make sure you have no syntax errors, and before long you'll have your first wiki backup! Check the log occasionally to make sure the scheduled task is running.