/etc/logrotate.d/postgresql-common - Ubuntu 20.04 LTS (Focal Fossa)

This is the default example configuration of postgresql-common provided by PostgreSQL. This config file was generated by PostgreSQL running on Ubuntu 20.04.

It is located under: /etc/logrotate.d/postgresql-common

    /var/log/postgresql/*.log {
       weekly
       rotate 10
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
       su root root
}

    
  

Config Details

Location
/etc/logrotate.d/postgresql-common
Operating system
Ubuntu 20.04 LTS (Focal Fossa)
Length
10 lines
MD5 checksum
101326ef5d138998692ece35109ef1a2

Usage

Download the raw file with wget or curl

Wget

wget -O postgresql-common.example http://exampleconfig.com/static/raw/postgresql/ubuntu20.04/etc/logrotate.d/postgresql-common

cURL

curl http://exampleconfig.com/static/raw/postgresql/ubuntu20.04/etc/logrotate.d/postgresql-common > postgresql-common.example