Created
May 4, 2015 09:48
-
-
Save VerosK/ea16b7259f6d233f0d34 to your computer and use it in GitHub Desktop.
Bacula delete old messages from catalog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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