From 88582c6662dea670e4a9b5fcf4e2e50434ea8025 Mon Sep 17 00:00:00 2001 From: Bardiel Date: Mon, 2 May 2022 20:10:33 +0000 Subject: [PATCH] Update 'MagicBox : Magicbane in a Box' --- MagicBox-%3A-Magicbane-in-a-Box.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MagicBox-%3A-Magicbane-in-a-Box.md b/MagicBox-%3A-Magicbane-in-a-Box.md index b385dd9..81b497a 100644 --- a/MagicBox-%3A-Magicbane-in-a-Box.md +++ b/MagicBox-%3A-Magicbane-in-a-Box.md @@ -112,6 +112,11 @@ Inside the Magicbox you will find the following devops utlities. The two bread and butter scripts in a MagicBox administrator's toolkit are mbbuild.sh and mbrestart.sh. Automated backups can be managed by using mbdump.sh in a cron job. +An example cron job would read (see below). Take note that the CronLogs/EODJobs.log may need to be manually created first, or you can save your logs at a different location of your choosing (or remove the logging altogether). This runs the mbdump.sh nightly at 2:00am server time. You're free to adjust this to your liking. [CronTabGuru](https://crontab.guru/#0_2_*_*_*) +```console +00 02 * * * export CLASSPATH="/usr/share/java/*" && /home/mbbox/magicbane/mbdump.sh "Commencing Daily Rebootings" >> /home/mbbox/magicbane/CronLogs/EODJobs.log 2>&1 +``` + The vigilant MagicBox administrator will always pay close attention to console_login and console_world. Anything in either log tagged as **ERROR** should be addressed. This applies doubly to bootstrap.