#NEWLINE# def get_mongo_backup_commands( self ) : #NEWLINE# #INDENT# command = "mongodump --username={adminuser} --password='{password}'" #NEWLINE# if self . database_host : #NEWLINE# #INDENT# command = ( '%s --host={host}' % command ) #NEWLINE# #UNINDENT# self . port = self . database_port #NEWLINE# if self . port : #NEWLINE# #INDENT# command = ( '%s --port={port}' % command ) #NEWLINE# #UNINDENT# command = ( '%s -db {databasename} -o {temp_dir}' % command ) #NEWLINE# backup_commands = [ shlex . split ( command ) ] #NEWLINE# return backup_commands