Create and set ownership to backup directory

This commit is contained in:
wpetit 2020-10-13 17:16:20 +02:00
parent e0e4cd71de
commit 4c648fd451
2 changed files with 5 additions and 0 deletions

1
debian/postgres-backup.dirs vendored Normal file
View File

@ -0,0 +1 @@
/var/backups/database/postgresql

4
debian/postgres-backup.postinst vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mkdir -p /var/backups/database/postgresql
chown -R postgres:postgres /var/backups/database/postgresql