From dc6d1b4d5ca159f553c2b3ced303f1751ce62020 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Jan 2019 19:54:46 -0600 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index a59938b..edc392f 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -28,6 +28,12 @@ RUN_BACKUP(){ echo "" read -n 1 -s -p "Press any key to continue" } +ADD_CRONTAB(){ + (crontab -l ; echo "0 */3 * * * /usr/local/bin/mysqlbu backup")| crontab - + echo -e "${Green}The crontab entry has been made${Color_Off}" + echo "" + read -n 1 -s -p "Press any key to continue" +} MAIN_MENU() { while : do @@ -73,6 +79,7 @@ MAIN_MENU() { INSTALL_MENU;; [Bb]) RUN_BACKUP;; [Ll]) LIST_BACKUPS;; + [Cc]) ADD_CRONTAB;; [Qq]) EXIT1 exit 1;; *) echo "Thats an invaild option,";