Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


mediawiki_backup (3) Versions 0.3.1

Installs/Configures mediawiki_backup

cookbook 'mediawiki_backup', '= 0.3.1', :supermarket
cookbook 'mediawiki_backup', '= 0.3.1'
knife supermarket install mediawiki_backup
knife supermarket download mediawiki_backup
Quality 0%

MediaWiki Backup Cookbook

This cookbook will backup a standalone MediaWiki server.

It will deploy a script and populate cron.d to execute it.


  • node['mediawiki_backup']['mailto'] - Email address for notifications. Default is root
  • node['mediawiki_backup']['retention_days'] - Number of days to keep backups. Default is an 8 day rotation.
  • node['mediawiki_backup']['backup_name'] - Name of the backup Tar file. Default is wiki_backup.
  • node['mediawiki_backup']['wiki_dir'] - Location of the MediaWiki directory. Default is '/var/www/mediawiki'.
  • node['mediawiki_backup']['wiki_conf'] - Location of the MediaWiki configuration. Default is '/etc/mediawiki'.
  • node['mediawiki_backup']['ssl_certs'] - Locations of the Apache SSL Certs. Default is in EL '/etc/pki/tls/private/server.key', '/etc/pki/tls/certs/server.crt'.
  • node['mediawiki_backup']['working_dir'] - Temporary working directory. Default is '/tmp'.
  • node['mediawiki_backup']['backup_store'] - Which directory to store backups '/etc/wiki_backup'.
  • node['mediawiki_backup']['cron']['minute'] - The minute at which the cron entry should run (0 - 59). Default value: *
  • node['mediawiki_backup']['cron']['hour'] - The hour at which the cron entry is to run (0 - 23). Default value: 23
  • node['mediawiki_backup']['cron']['day'] - The day of month at which the cron entry should run (1 - 31). Default value: *
  • node['mediawiki_backup']['cron']['month'] - The month in the year on which a cron entry is to run (1 - 12). Default value: *
  • node['mediawiki_backup']['cron']['weekday'] - The day of the week on which this entry is to run (0 - 6), where Sunday = 0. Default value: *


Set up the MediaWiki server backup attributes in a role. For example create a role called
wikiserver.json the is applied to all MediaWiki standalone server.

    "name": "wikiserver",
    "description": "Role applied to MediaWiki Servers",
    "chef_type": "role",
    "json_class": "MediaWiki::Role",
    "default_attributes": {
      "mediawiki_backup": {
        "mailto": "",
        "retention_days": "8"
        "ssl_certs": [
    "run_list": ["mediawiki_backup"]

License and Authors

  • Author:: Andrew Holt
Copyright (C) 2015  Andrew Holt

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <>.

Dependent cookbooks

cron ~> 1.7.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.3.1 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:21
FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:24
FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:25
FC002: Avoid string interpolation where not required: /tmp/cook/6dc95b1377aeaeec160ced95/mediawiki_backup/recipes/backup.rb:26