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"),