fix: dump from database db
This commit is contained in:
@@ -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)?;
|
||||
|
Reference in New Issue
Block a user