# File lib/mu/api/muapi.rb, line 184 def backup(command="run", name="") case command when 'run' doc = @http.get_xml("backup/run") unless doc.xpath("//job").empty? @job_id = doc.xpath("//job")[0].attribute('id') msg "job_id = #{@job_id}" return @job_id end return doc when 'status' doc = @http.get("backup/status") return doc when 'get' file_size = @http.download_file("backup/get","#{name}.dat") return "#{name}.dat file size = #{file_size}" end return false end