MySQLãã¼ã¿ãã¼ã¹ã®èªåããã¯ã¢ãããè¡ãªãã ããã§ã¯ãMySQLå ¨ãã¼ã¿ãã¼ã¹ããµã¼ãã¼å ã®å¥ãã£ã¬ã¯ããªã¸ããã¯ã¢ããããã [root@fedora ~]# vi mysql-backup.shãâãMySQLãã¼ã¿ãã¼ã¹ããã¯ã¢ããã¹ã¯ãªããä½æ #!/bin/bash PATH=/usr/local/sbin:/usr/bin:/bin # ããã¯ã¢ããå ãã£ã¬ã¯ã㪠BACKDIR=/backup/mysql # MySQLrootãã¹ã¯ã¼ã ROOTPASS=Mysqlrootãã¹ã¯ã¼ã # ããã¯ã¢ããå ãã£ã¬ã¯ããªåä½æ rm -rf $BACKDIR mkdir -p $BACKDIR # ãã¼ã¿ãã¼ã¹ååå¾ DBLIST=`ls -p /var/lib/mysql | grep / | tr -d /` # ãã¼ã¿ãã¼ã¹ãã¨ã«ããã¯ã¢ãã for dbname
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}