enable auto-restart for PostgreSQL

This commit is contained in:
Daniel Micay 2024-09-14 23:46:57 -04:00
parent a51be5a926
commit 4b179627a2
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,6 @@ rsync -pcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bi
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/mjolnir.service $remote:/etc/systemd/system/mjolnir.service
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate systemd/system/matterbridge.service.d $remote:/etc/systemd/system/
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate systemd/system/{matterbridge,postgresql}.service.d $remote:/etc/systemd/system/
rsync -pcv --chmod=644 --fsync --preallocate backup-public-key.txt cloud-archive.sh $remote:
rsync -pcv --chmod=600 --chown postgres:postgres --fsync --preallocate postgres/data/{pg_hba,pg_ident,postgresql}.conf $remote:/var/lib/postgres/data/

View File

@ -0,0 +1,2 @@
[Service]
Restart=always