Hi There,
How to change the time for postgres and mysql Nagios db backup daily/weekly/monthly ?
Nagios Backup
Re: Nagios Backup
The backups are handled by cron:
Code: Select all
cat /etc/cron.d/nagiosxiFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Backup
So different places for daily, weekly and monthly backup. We would like change the default time for all this backups.
Re: Nagios Backup
What times would you like?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Backup
for postgres 4 AM and mysql 5 AM
Re: Nagios Backup
You need to have the following lines in the "/etc/cron.d/nagiosxi".:
Save, and exit.
The backup will run daily. The backups are then rotated weekly & monthly. Hope this helps.
Code: Select all
# Backup MySQL & PostgreSQL Databases
0 5 * * * root /root/scripts/automysqlbackup
0 4 * * * root /root/scripts/autopostgresqlbackupThe backup will run daily. The backups are then rotated weekly & monthly. Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!