Skip to content

Commit

Permalink
Revert "Delete audit data > 30 days old"
Browse files Browse the repository at this point in the history
This reverts commit cd8a835.

We aren't going to truncate audit records any longer, and will just
monitor table usage to see if we should truncate in the future.

See clojars/clojars-web#812
  • Loading branch information
tobias committed Oct 9, 2021
1 parent a79d49a commit 4dbcfff
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions aws-ansible/roles/clojars/tasks/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,3 @@
hour: "1"
job: "find /tmp -name 'upload-*' -type d -mtime +3 -exec rm -rf {} +"

- name: Set clearing of audit log
become: true
cron:
name: "Clear audit log info > 30 days old"
user: "clojars"
minute: "0"
hour: "0"
job: ". ~/bin/config_env; env PGPASSWORD=$POSTGRES_PASSWORD psql -h $POSTGRES_HOST -p 5432 -U clojars -c \"delete from audit where created < (now() - interval '30 days');\""

0 comments on commit 4dbcfff

Please sign in to comment.