Install glacier-cmd utility and configure backups to glacier using glacier-cmd, tar and cron. It contains a LWRP for describing glacier backups.
Tested only on Ubuntu 12.04, but should works on Debian too. Only works with Express 42 crontab cookbook. You should remember to delete root's crontab entries when delete glacier backups in chef.
glacier_static LWRP creates tasks for backuping static content. All cron tasks are belongs to root user.
Action | Description |
---|---|
backup | Default action. Backups data. |
Attribute | Description | Default |
---|---|---|
name | Name attribute. Name of the backup (required) | |
path | Path to backup (required) | |
time | Describe time of backup, same format as for crontab (Hash) | { :minute => "0", :hour => "2", :day => "*", :month => "*", :weekday => "*" } |
tempdir | Temporary backup dir | /home/backups/ |
aws_key | AWS key (required) | |
aws_secret | AWS secret(required) | |
vault | Glacier vault, should exists (required) | |
region | AWS region | us-west-2 |
full | Incremental or full backup (boolean) | false |
glacier_static "backup-daily" do
path "/home/vagrant/"
aws_key 'my aws key'
aws_secret 'my aws secret'
vault 'backup'
time(:minute => "15", :hour => "4", :weekday => "1-6")
end
glacier_static "backup-weekly" do
path "/home/vagrant/"
aws_key 'my aws key'
aws_secret 'my aws secret'
vault 'backup'
time(:minute => "15", :hour => "4", :weekday => "7")
full true
end
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Author:: Ivan Evtuhovich [email protected]
Copyright 2012-2013, Express 42, LLC