aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/subcommands/backup.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/subcommands/backup.bash b/lib/subcommands/backup.bash
index 65a5d88..f454a4b 100644
--- a/lib/subcommands/backup.bash
+++ b/lib/subcommands/backup.bash
@@ -150,6 +150,7 @@ backup_database_postgresql() {
pg_dump "$database" \
| borg create \
--remote-path "$remote" \
- "$repo/postgresql-$database::$database-$(datetime)"
+ "$repo/postgresql-$database::$database-$(datetime)" \
+ -
done < <(psql -AXt -d template1 -c "SELECT datname FROM pg_database")
}