#NEWLINE# def get_backup_commands( self ) : #NEWLINE# #INDENT# backup_commands = settings . MYSQL_BACKUP_COMMANDS #NEWLINE# if ( not backup_commands ) : #NEWLINE# #INDENT# command = 'mysqldump --user={adminuser} --password={password}' #NEWLINE# if self . database_host : #NEWLINE# #INDENT# command = ( '%s --host={host}' % command ) #NEWLINE# #UNINDENT# if self . database_port : #NEWLINE# #INDENT# command = ( '%s --port={port}' % command ) #NEWLINE# #UNINDENT# command = ( '%s {databasename} >' % command ) #NEWLINE# backup_commands = [ shlex . split ( command ) ] #NEWLINE# #UNINDENT# return backup_commands