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


php_backup_s3 (2) Versions 0.1.0

Installs/Configures php_backup_s3

cookbook 'php_backup_s3', '= 0.1.0', :supermarket
cookbook 'php_backup_s3', '= 0.1.0'
knife supermarket install php_backup_s3
knife supermarket download php_backup_s3
Quality -%

phpBackupS3 cookbook

This cookbook assists with the usage and deployment of phpBackupS3.


  • You must have PHP installed on the system. On Ubuntu you can do that with this command:

    sudo apt-get install php5-cli php5-mysql php5-curl

  • You must also have git installed on your system. On Ubuntu you can do that with this command:

    sudo apt-get install git


Place the php_backup_s3::default cookbook in your run_list. This will install php_backup_s3 on your node and setup the cron job to run the backups.

Once the php_backup_s3::default cookbook as been run, you will need to call either or both of the LWRPs in order to actually back up files and/or databases, as follows:

php_backup_s3 "etc" do

  backup_files %w(/etc /root)

  databases = []
  databases << {
    "hostname" => "host",
    "username" => "user",
    "password" => "pass",
    "password" => "pass",
    "query" => "SELECT * WHERE 1 = 1"
  backup_dbs databases


Please see the recipes/test.rb file for an example.



  • node["php_backup_s3"]["s3_bucket"] - This is the s3 bucket that you want to backup to.
  • node["php_backup_s3"]["aws_access_key"] - You must supply your AWS access key.
  • node["php_backup_s3"]["aws_secret_key"] - You must supply your AWS secret key.


  • node["php_backup_s3"]["frequency"] - This will set how often your backup will run. Can be set to one of: weekly, daily, hourly. Default is "daily".
  • node["php_backup_s3"]["cron"]["minute"] - Set the minute that the backup will run. The default is "0".
  • node["php_backup_s3"]["cron"]["hour"] - Set the hour that the backup will run. The default is "0".
  • node["php_backup_s3"]["cron"]["weekday"] - Set the weekday that the backup will run. The default is "0" or Sunday.


There are no external recipe dependencies.


Author:: Ian Neubert (

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found