diff --git a/site-modules/profile/manifests/postgresql/backup.pp b/site-modules/profile/manifests/postgresql/backup.pp --- a/site-modules/profile/manifests/postgresql/backup.pp +++ b/site-modules/profile/manifests/postgresql/backup.pp @@ -1,8 +1,8 @@ class profile::postgresql::backup { include profile::postgresql::client - $pg_backup_user = %{hiera('swh::deploy::db::pgbouncer::user::login')} - $pg_backup_password = %{hiera('swh::deploy::db::pgbouncer::user::password')} + $pg_backup_user = lookup('swh::deploy::db::pgbouncer::user::login') + $pg_backup_password = lookup('swh::deploy::db::pgbouncer::user::password') file { '/usr/local/bin/pg_cluster_backup.sh': ensure => file, diff --git a/site-modules/profile/templates/swh/pg_cluster_backup.sh.erb b/site-modules/profile/templates/swh/pg_cluster_backup.sh.erb --- a/site-modules/profile/templates/swh/pg_cluster_backup.sh.erb +++ b/site-modules/profile/templates/swh/pg_cluster_backup.sh.erb @@ -1,6 +1,9 @@ #!/bin/sh +TARGET_DIR=/srv/storage/space/postgres_secondary + # banco has many *slow* CPU cores +# A full backup of the secondary cluster takes ~= 40 minutes with p=3 and c=1 PARALLELISM=3 COMPRESSION=1