Utiliser Barman pour sauvegarder la base PostgreSQL d’un Gitlab Omnibus
su gitlab-psql -s /bin/bash
/opt/gitlab/embedded/bin/createuser -h /var/opt/gitlab/postgresql/ -s -P barman
/opt/gitlab/embedded/bin/createuser -h /var/opt/gitlab/postgresql/ -P --replication streaming_barman
gitlab_rails['db_host'] = "/var/opt/gitlab/postgresql/"
postgresql['listen_address'] = '0.0.0.0'
postgresql['wal_level'] = "replica"
postgresql['max_wal_senders'] = 3
postgresql['max_replication_slots'] = 3
postgresql['custom_pg_hba_entries'] = {
'barman': [{
type: 'hostssl',
database: 'all',
user: 'barman',
cidr: '178.63.40.27/32',
method: 'md5'
}],
'streaming_barman': [{
type: 'hostssl',
database: 'replication',
user: 'streaming_barman',
cidr: '178.63.40.27/32',
method: 'md5'
}]
}
gitlab-ctl reconfigure