Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created May 4, 2015 09:48
Show Gist options
  • Save VerosK/ea16b7259f6d233f0d34 to your computer and use it in GitHub Desktop.
Save VerosK/ea16b7259f6d233f0d34 to your computer and use it in GitHub Desktop.
Bacula delete old messages from catalog
$messages_prune = '30 day'
cron{ 'bacula::catalog: Prune old messages from catalog':
command =>
"mysql --user='${dbuser}' --password='${dbpassword}' --host='${dbhost}' --execute='DELETE FROM Log where Time < (now() - INTERVAL ${messages_prune});' ${dbname}",
hour => [23,07],
minute => 16,
user => bacula,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment