Method: Mu::Command::Cmd_muapi#cmd_backup

Defined in:
lib/mu/command/cmd_muapi.rb

#cmd_backup(argv) ⇒ Object

backup has a set of three commands that are used to generate, query and retrieve a backup ex:

* argv = command-line arguments, requires a command (-c) argument
* command=run returns the job_id
* command=status (called after 'run')
* command=get (called when status returns "Finished"), requires the name (-n) argument
* name = backup file name (will be given a .dat extension)


257
258
259
260
261
262
263
264
# File 'lib/mu/command/cmd_muapi.rb', line 257

def cmd_backup argv
   setup argv
   command = @hash['command']
   name = @hash['name']
   response = @api.backup(command, name)
   msg response
   return response
end