Commit
f6ad9fd9efd9a58ccc0cb36807fbb2ac0100a2a8
Exists in
master
and in
28 other branches
add_sisp_to_chef, add_super_archives_plugin, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_list_style_on_folder_elements, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, lxc_settings, mezuro_cookbook, refactor_download_block, remove_broken_theme, remove_sisp_buttons, software_communities_html_refactor, software_infos_api, spb_to_rails4, stable-4.1, stable-4.2, theme_header, theme_javascript_refactory, update_search_by_categories
monthly backup when not in prod
Signed-off-by: Lucas Severo <lucassalves65@gmail.com>
|
| @@ -1,4 +0,0 @@ |
| @@ -1,4 +0,0 @@ |
|
1
| -0 */6 * * * root rsnapshot hourly |
| |
|
2
| -59 23 * * * root rsnapshot daily |
| |
|
3
| -40 23 * * 7 root rsnapshot weekly |
| |
|
4
| -20 23 1 * * root rsnapshot monthly |
| |
|
| @@ -13,7 +13,7 @@ cookbook_file '/usr/local/bin/backup_spb.sh' do |
| @@ -13,7 +13,7 @@ cookbook_file '/usr/local/bin/backup_spb.sh' do |
|
13
| mode 0755 |
13
| mode 0755 |
|
14
| end |
14
| end |
|
15
| |
15
| |
|
16
| -cookbook_file '/etc/cron.d/rsnapshot-spb' do |
16
| +template '/etc/cron.d/rsnapshot-spb' do |
|
17
| owner 'root' |
17
| owner 'root' |
|
18
| group 'root' |
18
| group 'root' |
|
19
| mode 0644 |
19
| mode 0644 |
|
| @@ -0,0 +1,8 @@ |
| @@ -0,0 +1,8 @@ |
|
| |
1
| +<%if node['environment'] == 'prod'%> |
|
| |
2
| +0 */6 * * * root rsnapshot hourly |
|
| |
3
| +59 23 * * * root rsnapshot daily |
|
| |
4
| +40 23 * * 7 root rsnapshot weekly |
|
| |
5
| +20 23 1 * * root rsnapshot monthly |
|
| |
6
| +<%else%> |
|
| |
7
| +20 23 1 * * root rsnapshot monthly |
|
| |
8
| +<%end%> |