From 1b1f9a31ed6cac02f7af433573c2c202ebb93486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Thu, 26 Feb 2026 17:45:28 -0500 Subject: [PATCH] feat: add -L to docker cp --- 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 6057a6b..5e23c93 100644 --- a/src/scripts/postgres.rs +++ b/src/scripts/postgres.rs @@ -48,7 +48,7 @@ pub fn import(container: &str, file: &Path) -> Result<()> { eprintln!("restoring database"); let commands = [ - format!("cp {dump_file} {db_container}:/tmp/dbdump"), + format!("cp -L {dump_file} {db_container}:/tmp/dbdump"), format!("exec {db_container} dropdb -U db db"), format!("exec {db_container} createdb -U db -E utf8 -T template0 db"), format!("exec {db_container} pg_restore -U db --dbname=db /tmp/dbdump"),