Home

 

Checking Wikis data integrity

The appropriate way to restore backed-up Wikis data is to restore versions of file system data and database data that match. You can check integrity between database data (metadata) and file system data (binary) by running the WikisDataIntegrityService.checkFiles command.

The WikiDataIntegrityService.checkFiles command outputs messages to the SystemOut.log file. Any files found on the file system but not in the database are moved to a file path location you specify in the command. You might want to delete these extra files, or back them up if you think you might need them for a future Wikis backup.

The command also logs files that are in the database but missing from the file system. The log includes the location where the file should be, its type (such as media), and its media_additional_file id. Users cannot download attachments if they are missing from the database. You can use the log information to find the missing files if possible, or restore an older backup on which the command will run successfully. Alternately, you can delete the rows that own the media_additional_file ids from the database, but be aware that this data is then irretrievable. You can also leave the mismatch and have it fail when users attempt to download.

  1. Start the wsadmin client.

  2. Start the Wikis script with the following command:

  3. Network deployment:

      execfile("profile_root/config/bin_lc_admin/ wikisAdmin.py")
      

  4. Check the integrity of data in the database and file system directory with the following command:

      WikisDataIntegrityService.checkFiles("/[path_to_extra_wikisDirectory]")
      


Backing up Wikis data

 

Related tasks

Start the wsadmin client

 

Related reference


Wikis administrative commands


+

Search Tips   |   Advanced Search