PostgreSQL - /etc/logrotate.d/postgresql-common
Pulled directly from an unmodified installation.
Quick Actions
๐ฅ Download Original postgresql-commonConfiguration File Information
Authentic & Original
Unaltered postgresql-common from fresh installation.
Linux Distribution Support
๐ Currently viewing: Debian 9 (Stretch)
โ Also compatible:
Debian 10 (Buster),
Debian 11 (Bullseye),
Debian 12 (Bookworm),
Ubuntu 18.04 LTS (Bionic Beaver),
Ubuntu 20.04 LTS (Focal Fossa),
Ubuntu 22.04 LTS (Jammy Jellyfish),
Ubuntu 24.04 LTS (Noble Numbat)
โ Different versions:
Debian:
Ubuntu:
Configuration File Content
11 lines
/var/log/postgresql/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}
Download Commands
postgresql-common โข
Download the 100% original unaltered configuration file pulled from PostgreSQL
Using wget:
wget -O postgresql-common.example https://exampleconfig.com/api/v1/config/original/101326ef5d138998692ece35109ef1a2?hint=postgresql-common
Using curl:
curl https://exampleconfig.com/api/v1/config/original/101326ef5d138998692ece35109ef1a2?hint=postgresql-common > postgresql-common.example