Sha256: c9f0dd0b11498dd4f94b9f80861bd9a0c97cbf102356bc464febb03ca5c55c6d
Contents?: true
Size: 902 Bytes
Versions: 6
Compression:
Stored size: 902 Bytes
Contents
# encoding: utf-8 ### Model.new(:db_backup, 'Backup DB of Rails app') do database MySQL, :gex do |db| db.name = $db_config['db'] db.host = $db_config['db_host'] db.username = $db_config['db_user'] db.password = $db_config['db_password'] 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 notify_by Mail do |mail| c = $smtp_config end end
Version data entries
6 entries across 6 versions & 1 rubygems