shellscript, MySQL, Linuxã·ã§ã«ã¹ã¯ãªããã®åå¼·ãå ¼ãã¦æ¸ãã¦ã¿ãã #!/bin/sh # MySQLã¦ã¼ã¶å mysql_user=ikamusume # MySQLãã¹ã¯ã¼ã mysql_pw=iloveshrimp # ããã¯ã¢ãããããã¼ã¿ãã¼ã¹å mysql_db_name=shrimp_db # ããã¯ã¢ããå save_dir=/home/ikamusume/shrimp_backup/ # ããã¯ã¢ãããã¡ã¤ã«ãæ®ãæ° max_save_count=10 # ããã¯ã¢ãããã¡ã¤ã«å backup_name=`date +"%Y-%m%d-%H%M%S"` mysqldump -u$mysql_user -p$mysql_pw $mysql_db_name > $save_dir$backup_name zip $save_dir$backup_n
{{#tags}}- {{label}}
{{/tags}}