X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=remote%2Fmysql-backup;fp=remote%2Fmysql-backup;h=0000000000000000000000000000000000000000;hp=0879dfd9bb49c859b3ca188bddbc7604de5913d9;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/remote/mysql-backup b/remote/mysql-backup deleted file mode 100755 index 0879dfd..0000000 --- a/remote/mysql-backup +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -eu -tool=$(readlink -e "${0%/*}/..") -. "$tool"/remote/lib.sh - -mkdir -p "$tool"/var/backup/mysql -"$tool"/remote/ssh -l backup ' - for db in $(sudo -u backup mysql -u backup --skip-column-names <<-EOF - SELECT schema_name - FROM information_schema.schemata - WHERE schema_name NOT IN ("information_schema", "performance_schema"); - EOF - ); do - echo $db - done - '