@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('name', metavar='<name>', help=_('Name of the backup image.'))
@utils.arg('backup_type', metavar='<backup-type>', help=_('The backup type, like "daily" or "weekly".'))
@utils.arg('rotation', metavar='<rotation>', help=_('Int parameter representing how many backups to keep around.'))
def do_backup(cs, args):
 _find_server(cs, args.server).backup(args.name, args.backup_type, args.rotation)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'name' , metavar = '<name>' , help = _ ( 'Name of the backup image.' ) ) @ utils . arg ( 'backup_type' , metavar = '<backup-type>' , help = _ ( 'The backup type, like "daily" or "weekly".' ) ) @ utils . arg ( 'rotation' , metavar = '<rotation>' , help = _ ( 'Int parameter representing how many backups to keep around.' ) ) def do_backup ( cs , args ) : _find_server ( cs , args . server ) . backup ( args . name , args . backup_type , args . rotation )
backup a server by creating a backup type snapshot .