Method: Backup::Database::Redis#perform!

Defined in:
lib/backup/database/redis.rb

#perform!Object

Performs the dump based on #mode and stores the Redis dump file to the dump_path using the dump_filename.

<trigger>/databases/Redis[-<database_id>].rdb[.gz]


76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/backup/database/redis.rb', line 76

def perform!
  super

  case mode
  when :sync
    # messages output by `redis-cli --rdb` on $stderr
    Logger.configure do
      ignore_warning(/Transfer finished with success/)
      ignore_warning(/SYNC sent to master/)
    end
    sync!
  when :copy
    save! if invoke_save
    copy!
  end

  log!(:finished)
end