mt4-backup
MTOS/MT 4向けコマンドライン・バックアップツール
本ソフトウェアは個人用・商用を問わず無償で提供されています。継続的な開発をご支援くださる方はご寄付をご考慮ください。
更新履歴
- 0.1 (2008-06-25 14:13:53 +0900):
- Initial release.
- 0.2 (2008-06-25 23:31:37 +0900):
- Add --dryrun option.
概要
MTOS/MT バージョン4以降では、バックアップ・リストア機能が実現されていますが、バックアップイメージを操作するWeb UIしか提供されていません。このことは、バックアップ・リストア機能の使い勝手や重要性を半減させているのではないかと思われます。
mt4-backupコマンドラインツールは、Web UIが生成するのと互換性のあるバックアップイメージを生成することができます。このコマンドをcronデーモンなどから起動することで、ブログのスナップショットを自動的に、かつ定期的に取ることができます。
使い方
usage: ./backup [--dir <dir>] [--blog_ids <id1,id2,...>] [--size <num>] [--archive=zip|tgz] [--dryrun]
backup $VERSION - A command-line backup tool for MTOS/MT version 4
--dir <dir>
Specify the destination directory. By default, the backup
files are created under the directory, specified by the
value of TempDir in your mt-config.cgi.
--blog_ids <id1,id2,...>
Specify the blogs to include this backup. By default,
all blogs are included in the backup.
--size <num>
Specify approximate file size (<num> kbytes) per backup file.
If not specified, backup files are never divided.
--archive=zip|tgz
Specify the archive format. If not specified, this program
just generates a set of backup files and does not create
a compressed archive file.
--dryrun
Dry run; perform a simulation of backup task that would
occur but do not actually generate a backup.
See Also
- mt4-backup (English version of this article)
- mt4-backup (TracBrowser)
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)