All of Percona’s open source software products, in one place, to download as much or as little as you need.
![Percona Toolkit](https://cdn-ak-scissors.b.st-hatena.com/image/square/7a6a8f9dbd22cda20b0502bc056f2dfa509f681e/height=288;version=1;width=512/https%3A%2F%2Fwww.percona.com%2Fwp-content%2Fuploads%2F2024%2F06%2FDES-258-Embedded-for-the-Percona-Toolkit-landing-page.png)
All of Percona’s open source software products, in one place, to download as much or as little as you need.
Movable Typeを5にアップグレードしたので、そのデータベースもPostgreSQLからMySQLに移行するハメになった。 ので、MySQL用のバックアップスクリプトも書いたよ。もちろん、世代管理機能付き♪ ちなみに、PostgreSQL用のバックアップスクリプトはこちら。 mysqldump_daily.sh #/bin/sh ################################################## # MySQL database backup script # # Dump to DB_NAME.YYMMDD.dump # Delete expired dump file # Output log file. ################################################## ###################
MySQLデータベースの自動バックアップを行なう。 ここでは、すべてのストレージエンジン形式に対応したmysqldumpコマンドを使用して、MySQL全データベースをサーバー内の別ディレクトリへバックアップする。 [root@centos ~]# vi mysql-backup.sh ← MySQLデータベースバックアップスクリプト作成 #!/bin/bash PATH=/usr/local/sbin:/usr/bin:/bin # バックアップ先ディレクトリ BACKDIR=/backup/mysql # MySQLrootパスワード ROOTPASS=xxxxxxxx # バックアップ先ディレクトリ再作成 rm -rf $BACKDIR mkdir -p $BACKDIR # データベース名取得 DBLIST=`ls -p /var/lib/mysql | grep / | tr -d
mySQLのバックアップスクリプトです。 mysqldump.sh と purge.sql は同じディレクトリに配置。 Cronで1日1回実行します。 コマンドでパスワードをセットする場合は「-p」に続けて(スペースを入れずに)パスワードを記述します。 mysqldump.sh -------- #!/bin/sh # スクリプトがおいてあるディレクトリ BASEDIR=/home/mysql/cron/backup/ DESTFILE=mysqldump.sql ZIPFILE=mysqldump.zip MYSQLBIN=/usr/local/mysql/bin/ MYUSER=root MYPASS=hogehoge # KEYCODEはzip圧縮するときのパスワード KEYCODE=hogehoge cd ${BASEDIR} # mysqlのダンプを出力 ${MYSQLBIN}m
ラグジュアリーな大人のモダン空間から カジュアルなアミューズメント空間まで 多彩なレイアウトのコンセプトルーム こだわり食材と 季節ごとの創造性あふれる 幅広いメニュー Located in the heart of Tokyo, FIORIA private dining offers you a variety of spaces to accommodate groups from 2 to 60 people. From classic to modern, each of our private dining rooms have been designed in various styles. Each room is equipped with karaoke and large LCD screens, suitable for a private screening wh
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く