mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-27 03:43:01 +02:00
Fix PostgreSQL hook not using "psql_command" for list when dumping "all"
This commit is contained in:
@@ -59,8 +59,9 @@ def database_names_to_dump(database, extra_environment, log_prefix, dry_run):
|
||||
if dry_run:
|
||||
return ()
|
||||
|
||||
psql_command = database.get('psql_command') or 'psql'
|
||||
list_command = (
|
||||
('psql', '--list', '--no-password', '--csv', '--tuples-only')
|
||||
(psql_command, '--list', '--no-password', '--csv', '--tuples-only')
|
||||
+ (('--host', database['hostname']) if 'hostname' in database else ())
|
||||
+ (('--port', str(database['port'])) if 'port' in database else ())
|
||||
+ (('--username', database['username']) if 'username' in database else ())
|
||||
|
||||
Reference in New Issue
Block a user