WAL-G slows down significantly when too many backups are kept. We need to periodically clean up old backups to maintain a reasonable level of performance, and also keep from wasting space with useless old backups.
11 lines
295 B
Django/Jinja
11 lines
295 B
Django/Jinja
[Unit]
|
|
Description=PostgreSQL Backup delete with WAL-G
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=PGDATA=/var/lib/pgsql/data
|
|
ExecStart=/usr/bin/wal-g-pg delete --config /etc/postgresql/wal-g.yml {{ wal_g_pg_delete_args }} --confirm
|
|
User=postgres
|