====== zammad1.shackspace.de ====== {{tag> infrastructure}} ===== Manuelle Ergänzungen ===== ==== Logrotate ==== Zusätzlich zu normalem Logrotate für elasicsearch logs, mangels Wissen um korrekte log4j-Konfiguration: cat <<'EOF' >/etc/cron.daily/logexpire-elasticsearch find /var/log/elasticsearch -type f -name 'elasticsearch-*' -ctime +30 -print0 | xargs -0 --no-run-if-empty rm EOF chmod +x /etc/cron.daily/logexpire-elasticsearch ==== Backup ==== Backup der lokalen Postgresinstanz ins Dateisystem nach ''/var/backups/postgresql'' mit ''autopostgresbackup''. Kleiner Zusatzjob ''/etc/cron.daily/autopostgresbackup-expire'' der Backups die älter als 4 Tage sind löscht, zu wenig Platz auf dem System für mehr.