fix: dump from database `db`
This commit is contained in:
parent
f56965abc2
commit
f7737ea00d
|
@ -86,7 +86,7 @@ pub fn dump(container: &str, file: &PathBuf) -> Result<()> {
|
|||
let file = File::create(file)?;
|
||||
let stdout = Stdio::from(file);
|
||||
|
||||
let command = format!("exec {db_container} pg_dump -U db --format=c {container}");
|
||||
let command = format!("exec {db_container} pg_dump -U db --format=c db");
|
||||
CommandBuilder::docker()
|
||||
.args(&command)
|
||||
.exec_redirect_stdout(stdout)?;
|
||||
|
|
Loading…
Reference in New Issue