Merge "Add root cron jobs to gerrit"
This commit is contained in:
commit
95184b5454
@ -309,6 +309,21 @@
|
|||||||
minute: 17
|
minute: 17
|
||||||
hour: 4
|
hour: 4
|
||||||
|
|
||||||
|
- name: Set up cron job to track upstream
|
||||||
|
cron:
|
||||||
|
name: track-upstream
|
||||||
|
job: '/usr/local/bin/track-upstream'
|
||||||
|
user: root
|
||||||
|
minute: 42
|
||||||
|
|
||||||
|
- name: Set up cron job to back up gerrit db
|
||||||
|
cron:
|
||||||
|
name: gerrit-backup
|
||||||
|
user: root
|
||||||
|
hour: 0
|
||||||
|
minute: 0
|
||||||
|
job: '/usr/bin/mysqldump --defaults-file=/root/.gerrit_db.cnf --opt --ignore-table mysql.event --all-databases --single-transaction | gzip -9 > /home/gerrit2/mysql_backups/gerrit.sql.gz'
|
||||||
|
|
||||||
# Gerrit rotates their own logs, but doesn't clean them out
|
# Gerrit rotates their own logs, but doesn't clean them out
|
||||||
# Delete logs older than a month
|
# Delete logs older than a month
|
||||||
- name: Set up cron job to clean old gerrit logs
|
- name: Set up cron job to clean old gerrit logs
|
||||||
|
Loading…
Reference in New Issue
Block a user