summaryrefslogtreecommitdiffstats
path: root/systemd/system/pg_compresswal@.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/system/pg_compresswal@.service')
-rw-r--r--systemd/system/pg_compresswal@.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/systemd/system/pg_compresswal@.service b/systemd/system/pg_compresswal@.service
new file mode 100644
index 0000000..e5eae6b
--- /dev/null
+++ b/systemd/system/pg_compresswal@.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Compress WAL of PostgreSQL Cluster %i
+AssertPathExists=/etc/postgresql/%I/postgresql.conf
+RequiresMountsFor=/var/backups/postgresql
+
+[Service]
+Type=oneshot
+User=postgres
+ExecStart=/usr/bin/pg_backupcluster %i compresswal