Sha256: 4b0513a4fc5daedc3922d18dffd0d1a1157d5d943b4abb7a4f7f004d1b3d4871
Contents?: true
Size: 893 Bytes
Versions: 12
Compression:
Stored size: 893 Bytes
Contents
# encoding: utf-8 ## # Backup Generated: <%= @options[:trigger] %> # Once configured, you can run the backup with the following command: # # $ backup perform -t <%= @options[:trigger] %> [-c <path_to_configuration_file>] # Backup::Model.new(:<%= @options[:trigger] %>, 'Description for <%= @options[:trigger] %>') do <% if @options[:splitter] %> <%= Backup::Template.new.result("cli/utility/splitter") %> <% end; if @options[:archives] %> <%= Backup::Template.new.result("cli/utility/archive") %> <% end; [:databases, :storages, :syncers, :encryptors, :compressors, :notifiers].each do |item| if @options[item] @options[item].split(',').map(&:strip).uniq.each do |entry| if File.exist?(File.join(Backup::TEMPLATE_PATH, 'cli', 'utility', item.to_s[0..-2], entry)) %> <%= Backup::Template.new.result("cli/utility/#{item.to_s[0..-2]}/#{entry}") %> <% end end end end %> end
Version data entries
12 entries across 12 versions & 4 rubygems