diff --git a/templates/script/backup-all-buckets.erb.sh b/templates/script/backup-all-buckets.erb.sh index 200a5a1..14b3b7b 100644 --- a/templates/script/backup-all-buckets.erb.sh +++ b/templates/script/backup-all-buckets.erb.sh @@ -6,6 +6,7 @@ sleep $((16#$(ip a | grep "link/ether" | head -1 | awk -F ':' '{print $6}' | awk number_of_full_to_keep='<%= @full_backup_retention %>' fork_limit=30 #in GB, if bigger than this number, we fork the backup to it's own process customer="<%= @customer %>" +declare -a extra_backup_jobs=() #<% if @location.start_with?('common') %> declare -a sixmonths=('mau') if [[ " ${sixmonths[*]} " =~ " ${customer} " ]]; then @@ -13,6 +14,9 @@ if [[ " ${sixmonths[*]} " =~ " ${customer} " ]]; then fi declare -a projects #<% @singlenodes.each do |singlenode| %> +#<% if @extra_backup_jobs[singlenode] %> +extra_backup_jobs+=("<%= @extra_backup_jobs[singlenode]['script'] %>") +#<% end %> projects+=("<%= @full_project_mapping[singlenode][@environment]['primary_project'] %> <%= @full_project_mapping[singlenode][@environment]['mirror_project'] %>") #<% @full_project_mapping[singlenode][@environment]['assigned'].each do |project| %> projects+=("<%= project['project'] %> <%= project['mirror_project'] %>")