Commit 96416c4a8fb9c22f4273160672e72fc68e2317d9
1 parent
f6ad9fd9
Exists in
master
and in
19 other branches
add config variable for dev_backup
Signed-off-by: Lucas Severo <lucassalves65@gmail.com>
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
config/lappis/config.yaml
cookbooks/backup/templates/rsnapshot-spb.erb
| 1 | -<%if node['environment'] == 'prod'%> | |
| 1 | +<%if node['config']['dev_backup']%> | |
| 2 | +20 23 1 * * root rsnapshot monthly | |
| 3 | +<%else%> | |
| 2 | 4 | 0 */6 * * * root rsnapshot hourly |
| 3 | 5 | 59 23 * * * root rsnapshot daily |
| 4 | 6 | 40 23 * * 7 root rsnapshot weekly |
| 5 | 7 | 20 23 1 * * root rsnapshot monthly |
| 6 | -<%else%> | |
| 7 | -20 23 1 * * root rsnapshot monthly | |
| 8 | 8 | <%end%> | ... | ... |