fix: dump from database `db`

This commit is contained in:
Matej Janezic 2024-11-27 20:00:37 +01:00
parent f56965abc2
commit f7737ea00d
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 1 additions and 1 deletions

View File

@ -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)?;