# File lib/rq-2.3.1/backer.rb, line 15 def backup #--{{{ set_q bak = @argv.shift bak ||= "#{ @qpath }.#{ Util::timestamp.gsub(/[:\s\.-]/,'_') }.bak" raise "<#{ bak }> exists" if bak and test(?e, bak) debug{ "bak <#{ bak }>" } @q.lock{ FileUtils::cp_r @qpath, bak } info{ "created backup <#{ bak }>" } #--}}} end