#NEWLINE# def run_upload_db( ) : #NEWLINE# #INDENT# db_engine = DATABASES [ 'default' ] [ 'ENGINE' ] #NEWLINE# db_name = DATABASES [ 'default' ] [ 'NAME' ] #NEWLINE# if ( 'sqlite' in db_engine ) : #NEWLINE# #INDENT# print ( 'Upload of sqlite database is not supported.' ) #NEWLINE# #UNINDENT# db_type = None #NEWLINE# if ( 'postgre' in db_engine ) : #NEWLINE# #INDENT# db_type = 'psql' #NEWLINE# #UNINDENT# if ( 'mysql' in db_engine ) : #NEWLINE# #INDENT# db_type = 'mysql' #NEWLINE# #UNINDENT# local ( 'scp {0}_{1}.sql {2}@{2}.webfactional.com:/home/{2}/' . format ( db_engine , db_type , fab_settings . ENV_USER ) )