<commit_before>rs_utils_marker :begin

class Chef::Recipe
  include RightScale::BlockDeviceHelper
end

NICKNAME = get_device_or_default(node, :device1, :nickname)

block_device NICKNAME do
  lineage node[:solr][:backup_lineage]
  cron_backup_recipe "solr::do_storage_backup"
  cron_backup_minute rand(60).to_s()
  persist false
  action :backup_schedule_enable
end

rs_utils_marker :end<commit_msg>changing block_device to cron, as block_device does not support hourly backups<commit_after>rs_utils_marker :begin

class Chef::Recipe
  include RightScale::BlockDeviceHelper
end

NICKNAME = get_device_or_default(node, :device1, :nickname)

#block_device NICKNAME do
#  lineage node[:solr][:backup_lineage]
#  cron_backup_recipe "solr::do_storage_backup"
#  cron_backup_minute rand(60).to_s()
#  persist false
#  action :backup_schedule_enable
#end

recipe="solr::do_storage_backup"
minute=rand(60).to_s()
cron "RightScale remote_recipe #{recipe}" do
  minute "#{minute}" unless minute.empty?
  user "root"
  command "rs_run_recipe -n \"#{recipe}\" 2>&1 > /var/log/rightscale_tools_cron_backup.log"
  action :create
end

rs_utils_marker :end
{'fraction_non_alphanumeric': 0.1009657594381036, 'fraction_numerical': 0.00877963125548727, 'mean_word_length': 7.142857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7148421', 'n_tokens_mistral': 418, 'n_tokens_neox': 410, 'n_words': 85}