Determines whether Backup should invoke the SAVE command through the 'redis-cli' utility to persist the most recent data before copying over the dump file
Creates a new instance of the Redis database object
# File lib/backup/database/redis.rb, line 38 def initialize(model, &block) super(model) @additional_options ||= Array.new instance_eval(&block) if block_given? @name ||= 'dump' @redis_cli_utility ||= utility('redis-cli') end
Performs the Redis backup by using the 'cp' unix utility to copy the persisted Redis dump file to the Backup archive. Additionally, when 'invoke_save' is set to true, it'll tell the Redis server to persist the current state to the dump file before copying the dump to get the most recent updates in to the backup
# File lib/backup/database/redis.rb, line 55 def perform! super invoke_save! if invoke_save copy! end
Generated with the Darkfish Rdoc Generator 2.