From f7737ea00d6750028d385590d847859c83c40a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 27 Nov 2024 20:00:37 +0100 Subject: [PATCH] fix: dump from database `db` --- src/scripts/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/postgres.rs b/src/scripts/postgres.rs index a2f6ba8..6057a6b 100644 --- a/src/scripts/postgres.rs +++ b/src/scripts/postgres.rs @@ -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)?;