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

RSS

mass-backup (1) Versions 1.0.1

Installs/Configures mass-backup

Berkshelf/Librarian
Policyfile
Knife
cookbook 'mass-backup', '~> 1.0.1'
cookbook 'mass-backup', '~> 1.0.1', :supermarket
knife cookbook site install mass-backup
knife cookbook site download mass-backup
README
Dependencies
Quality

mass-backup Cookbook

mass-backup cookbook is the extension over Tartarus and covers the installation of scheduled database (PostgreSQL currently) and filesystem backups.

Requirements

packages

see metadata.rb

Attributes

mass-backup::default

Tartarus configuration is required in order to successfully run the recipe.

https://github.com/ffuenf/chef-tartarus

Usage

mass-backup::default

Just include mass-backup in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[mass-backup]"
  ]
}

It installs required bash scripts that are responsible for the backup: - DB backup script - goes through users in the /home, and searches for "backup" directory where <name>_dump.conf files are executed in order to back up PostgreSQL. The configuration can be created with dedicated resource "mass_backup_db_backup" - log file is written to /var/log/backup-db.log - Filesystem backup script - goes through defined tartarus backup configurations - log file is written to /var/log/backup-fs.log

Resource

mass_backup_db_backup

Example resource usage:

mass_backup_db_backup "myuser" do
  group "mygroup"
  databases(
    "mydb" => {
      "vacuum" => "true"
    }
  )
end

Creates backup configuration in /home/myuser/backup/mydb_dump.conf. The resulting dump is taken by FS backup and transfer using Tartarus to the configured location.

Contributing

  1. Fork the repository on Github - https://github.com/seges/chef-cookbook-mass-backup
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Author:: Ladislav Gazo (gazo@seges.sk) Copyright:: 2014, Seges Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

tartarus >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.1 failed this metric

FC059: LWRP provider does not declare use_inline_resources: mass-backup/providers/db_backup.rb:1
FC064: Ensure issues_url is set in metadata: mass-backup/metadata.rb:1
FC065: Ensure source_url is set in metadata: mass-backup/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mass-backup/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mass-backup/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.0.1 failed this metric

mass-backup does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

1.0.1 passed this metric

Publish Metric
            

1.0.1 passed this metric

Supported Platforms Metric
            

1.0.1 failed this metric

mass-backup should declare what platform(s) it supports.

Testing File Metric
            

1.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number