diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-26 21:43:15 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-26 21:43:15 +0200 |
commit | 9256e0933c711c1ce39b8ff89d628a1fcf0ddeea (patch) | |
tree | 470a73900433583abcf4b77fc56f9665050ec743 | |
parent | 52230d0f94f6b4f1e221ced1f1de7358138d8713 (diff) |
Don't use --content-from-command
-rw-r--r-- | lib/subcommands/backup.bash | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/subcommands/backup.bash b/lib/subcommands/backup.bash index d717779..c6e5821 100644 --- a/lib/subcommands/backup.bash +++ b/lib/subcommands/backup.bash @@ -158,13 +158,11 @@ backup_database_postgresql() { cmd_create=( "borg" "create" "--remote-path" "$remote" - "--content-from-command" "$repo/postgresql-$database::$database-$(datetime)" - "--" - "pg_dump" "$database" + "-" ) - notice "$BASHTARD_NAME/backup/$index" "> ${cmd_create[*]}" - ${cmd_create[@]} + notice "$BASHTARD_NAME/backup/$index" "> pg_dump "$database" | ${cmd_create[*]}" + pg_dump "$database" | ${cmd_create[@]} done < <(psql -AXt -d template1 -c "SELECT datname FROM pg_database") } |