From a791eb949f90b1aa7b05f2529354c14a34d22681 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 19 Apr 2019 10:26:43 +0200 Subject: [PATCH] added mysqlbackup script --- bin/mysqlbackup.sh | 41 +++++++++++++++++++++++++++++++++++++++++ install.sh | 1 + readme.md | 2 +- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 bin/mysqlbackup.sh diff --git a/bin/mysqlbackup.sh b/bin/mysqlbackup.sh new file mode 100644 index 0000000..9fe7b7d --- /dev/null +++ b/bin/mysqlbackup.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +echo -e ' + __ __ _ ___ _ + | \/ |_ _ ___ __ _| | | _ ) __ _ __| |___ _ _ __ ___ + | |\/| | || (_- /tmp/mycron +echo "30 2 */2 * * /usr/local/bin/mysqlbackup.sh" >> /tmp/mycron +crontab /tmp/mycron +rm /tmp/mycron + +echo -e "mysql backup script installed" diff --git a/install.sh b/install.sh index 2894ae8..037f6a0 100755 --- a/install.sh +++ b/install.sh @@ -33,6 +33,7 @@ _cwd="$(pwd)" . bin/knockd.sh # . bin/email.sh . bin/lemp.sh +. bin/mysqlbackup.sh # . bin/vhost.sh . bin/zabbix.sh . bin/urbackup.sh diff --git a/readme.md b/readme.md index ddb40cf..b5fe568 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ each alpine linux stable release has it's branch (master is a clone of the last - [ ] letsencrypt - [ ] vhosts - [x] redis -- [x] zabbix-agent (4) +- [x] zabbix-agent (3.4 || 4) - [x] urbackup-client - [ ] solr - [ ] git barre repos