This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# これはなに?: | |
# MySQLのダンプファイルをテーブル毎に分割します。 | |
# カレントディレクトリ配下に「<データベース名>/<テーブル名>.dump」という構成でファイル分割します。 | |
# | |
# 使い方: | |
# gunzip -c XXXXdb.dump.gz | ruby dump_splitter.rb | |
require 'fileutils' |