Fix bug when constructing pg_dump command
This commit is contained in:
		
							parent
							
								
									f185169c43
								
							
						
					
					
						commit
						b9b66f636e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -308,7 +308,7 @@ class Backup(Subcommand): | |||
|                 tmp_path = '/tmp/{}.sql'.format(name) | ||||
|                 if os.path.exists(tmp_path): | ||||
|                     os.remove(tmp_path) | ||||
|                 pg_dump = ['sudo', '-u', 'postgres', 'pg_dump', verbose] | ||||
|                 pg_dump = ['sudo', '-u', 'postgres', 'pg_dump'] | ||||
|                 if False: # TODO | ||||
|                     pg_dump.append('--verbose') | ||||
|                 cmd = pg_dump + [name, '--file={}'.format(tmp_path)] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar