Sha256: 338f73ef75002006274656dd15dd0f945b5d83b726554197014681a292e7cd96
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
# encoding: utf-8 ### Model.new(:app_files_backup, 'App files') do archive :files do |archive| # follow symlinks #https://github.com/backup/backup/issues/169 archive.tar_options '-h' # dir_app = $app_config[:path] #archive.add "#{dir_app}" in_dirs = ($backup_config['backup']['app_files']['include'] rescue []) || [] ex_dirs = ($backup_config['backup']['app_files']['exclude'] rescue []) || [] (in_dirs).each do |d| dpath = (d=~ /^\//) ? d : "#{dir_app}#{d}" archive.add dpath end (ex_dirs).each do |d| dpath = (d=~ /^\//) ? d : "#{dir_app}#{d}" archive.exclude dpath end end #### Storages $backup_config['storages'].each do |b| if b['type']=='scp' store_with SCP do |server| build_storage_scp(server, b) end elsif b['type']=='s3' ## # Store on Amazon S3 # store_with S3 do |s3| build_storage_s3(s3, b) end elsif b['type']=='local' ## # Local (Copy) # store_with Local do |local| build_storage_local(local, b) end end end ## # Gzip [Compressor] # compress_with Gzip ### notify if $backup_config['notify']['mail'] notify_by Mail do |mail| c = $smtp_config end end if $backup_config['notify']['slack'] notify_by Slack do |slack| end end end
Version data entries
3 entries across 3 versions & 1 rubygems