406 |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup |
407 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
408 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup 2019-10-02 22:15:09.804000000 -0400 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup 2019-10-02 22:15:09.804000000 -0400 |
409 |
@@ -0,0 +1,35 @@ |
@@ -0,0 +1,37 @@ |
410 |
+{ |
+{ |
411 |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
412 |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
432 |
+ PASSWORD ('$pass')); |
+ PASSWORD ('$pass')); |
433 |
+ |
+ |
434 |
+ |
+ |
435 |
+GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ; |
+REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost'; |
436 |
|
+REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost'; |
437 |
|
+GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ; |
438 |
+ |
+ |
439 |
+ |
+ |
440 |
+FLUSH PRIVILEGES; |
+FLUSH PRIVILEGES; |
447 |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup |
448 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
449 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 2019-10-02 22:15:59.323000000 -0400 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 2019-10-02 22:15:59.323000000 -0400 |
450 |
@@ -0,0 +1,35 @@ |
@@ -0,0 +1,37 @@ |
451 |
+{ |
+{ |
452 |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
453 |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
473 |
+ PASSWORD ('$pass')); |
+ PASSWORD ('$pass')); |
474 |
+ |
+ |
475 |
+ |
+ |
476 |
+GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ; |
+REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost'; |
477 |
|
+REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost'; |
478 |
|
+GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ; |
479 |
+ |
+ |
480 |
+ |
+ |
481 |
+FLUSH PRIVILEGES; |
+FLUSH PRIVILEGES; |
488 |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup |
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup |
489 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 1969-12-31 19:00:00.000000000 -0500 |
490 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 2019-10-02 22:13:28.624000000 -0400 |
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 2019-10-02 22:13:28.624000000 -0400 |
491 |
@@ -0,0 +1,35 @@ |
@@ -0,0 +1,43 @@ |
492 |
+{ |
+{ |
493 |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
+my $user = $automysqlbackup{'DbUser'} || 'backupuser'; |
494 |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
+my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup'; |
507 |
+REPLACE INTO user ( |
+REPLACE INTO user ( |
508 |
+ host, |
+ host, |
509 |
+ user, |
+ user, |
510 |
+ authentication_string) |
+ authentication_string, |
511 |
|
+ ssl_cipher, |
512 |
|
+ x509_issuer, |
513 |
|
+ x509_subject) |
514 |
+ VALUES ( |
+ VALUES ( |
515 |
+ 'localhost', |
+ 'localhost', |
516 |
+ '$user', |
+ '$user', |
517 |
+ PASSWORD ('$pass')); |
+ PASSWORD ('$pass'), |
518 |
|
+ '', |
519 |
|
+ '', |
520 |
|
+ ''); |
521 |
+ |
+ |
522 |
+ |
+ |
523 |
+GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ; |
+REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost'; |
524 |
|
+REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost'; |
525 |
|
+GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ; |
526 |
+ |
+ |
527 |
+ |
+ |
528 |
+FLUSH PRIVILEGES; |
+FLUSH PRIVILEGES; |
568 |
+ find $DB$2 -type f -exec chmod 400 {} \; |
+ find $DB$2 -type f -exec chmod 400 {} \; |
569 |
+ find $DB$2 -type d -exec chmod 700 {} \; |
+ find $DB$2 -type d -exec chmod 700 {} \; |
570 |
+fi |
+fi |
571 |
|
diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db |
572 |
|
--- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db 2019-11-26 13:27:03.395000000 -0500 |
573 |
|
+++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db 2019-11-26 13:30:23.571000000 -0500 |
574 |
|
@@ -4,7 +4,7 @@ |
575 |
|
# DB Specific |
576 |
|
CONFIG_backup_dir=${BACKUPDIR}_mysql57 |
577 |
|
CONFIG_mysql_dump_full_schema='no' |
578 |
|
-CONFIG_db_exclude=( 'performance_schema' 'sys' ) |
579 |
|
+CONFIG_db_exclude=( 'information_schema' 'performance_schema' 'sys' ) |
580 |
|
CONFIG_mysql_dump_socket='/var/lib/mysql/mysql57.sock' |
581 |
|
# End |
582 |
|
_EOF |