MOVEit Transfer システムのバックアップは、以下のいずれかの方法で行うことができます。
dmzbackup
および dmzrestore
を使用する。これらのコマンドラインユーティリティは、現在の MOVEit Transfer 設定をこのプラットフォームまたは別のプラットフォームに複製するのに必要なすべてのファイル、フォルダー、証明書、およびレジストリ設定の完全なバックアップおよび復元を行います。dmzbackup
でバックアップし、ファイルストアをクラウドサービス固有のストアでバックアップする必要があります。たとえば、Azure Blob の場合、AzCopy がよく使用されます。これらのユーティリティは、以下のものをバックアップおよび復元できます。
Backup/Restore ユーティリティは、サーバー上の重要な MOVEit Transfer ファイルがある場所と、ロック動作を実行するために MySQL データベースに接続する方法を自動的に判断します。管理者はこれらの自動検出をオーバーライドすることができます。
バックアップおよび復元は、Web ファームインストール、スタンドアロンインストール、さまざまなパス構造を持つインストールなど、さまざまなタイプの MOVEit Transfer インストール (ただし異なるバージョンではない) で行うことができます。この機能では、Backup/Restore ユーティリティで、MOVEit Transfer インストールパス情報、データベースアクセス情報、または E メールサーバー設定をバックアップする必要はありません。これらは通常、インストール単位で設定され、異なるサーバー間で複製されません。
Backup ユーティリティの MOVEit Transfer データベーステーブルのバックアップ機能は、MySQL データベースにのみ適用されます。Microsoft SQL Server を MOVEit Transfer のデータベースとして使用する場合は、--without-database オプションを指定してユーティリティを実行する必要があり、さらに他のツールを使用して MOVEit Transfer データベースをバックアップする必要があります。SQL Server が使用されていることがユーティリティで検出され、--without-database オプションが指定されていない場合、エラーメッセージが表示されて終了します。
Backup ユーティリティは、MySQL データベース情報をバックアップする前に、すべての MOVEit Transfer データベーステーブルに対する読み取りロックを取得します。これは、バックアッププロセス中にデータが変化しないようにするために行います。これを行うことで、テーブルがロックされている間に MOVEit Transfer に入ってきた要求は、テーブルが再度使用できるようになってから続行されます (読み取りロックは、データベーステーブルがバックアップされた後に解放されます)。このため、ピーク外の時間帯にバックアッププロセスを実行する場合に最適です。
Backup/Restore ユーティリティでは、NTFS アクセス許可、NT ユーザー/グループ、または IIS 設定はバックアップされません。これらのユーティリティを使用して "ホットスタンバイ" を維持する場合は、これらの項目をあらかじめ 2 番目のマシンで設定しておく必要があります (多くの場合、テープバックアップ全体を新しいマシンに復元してホットスタンバイを作成し、Backup ユーティリティを定期的に実行して、ホットスタンバイのデータを最新の状態に保ちます)。
Backup ユーティリティでは、SSL サーバー証明書のインポート時に設定した可能性がある [do not export private key (秘密キーをエクスポートしない)] 設定をオーバーライドすることはできません。秘密キーに関連する SSL サーバー証明書のエクスポートエラーがユーティリティで発生した場合は、そのエラーがすぐに出力され、ユーティリティが終了します。--ignore-cert-export-errors オプションを使用すると、ユーティリティがこのように終了するのを防ぐことができますが、その場合も問題のある証明書はバックアップされません。
重要: MOVEit Transfer Backup/Restore ユーティリティは、Azure Blob Storage を使用している MOVEit Transfer ファイルストアをバックアップすることはできません(Azure Blob Storage をバックアップする場合は、AzCopy が適しています)。
MOVEit Transfer と MOVEit Mobile サーバーは、同じアプリケーションサーバーノードにインストールされます。Web ファームの場合、複数のノードが使用されます。Apache Tomcat は、MOVEit Mobile を実行するアプリケーションサーバーソフトウェアです。MOVEit Mobile サーバー (MOVEit Mobile の Tomcat ディレクトリ) はバックアップおよび復元することができます。すべての MOVEit Mobile データは、Mobile フォルダーの下のアーカイブに保存されます。
Mobile のバックアップはデフォルトで無効になっています。バックアップを有効にするには、--backup-mobile オプションを使用します。このオプションには Tomcat 設定ファイルの暗号化に使用するパスワードが必要です。
Mobile の復元はデフォルトで無効になっています。復元を有効にするには、--restore-mobile オプションを使用し、バックアップの暗号化に使用されたパスワードを指定します。
ユーティリティは、Windows レジストリのエントリを使用して、MOVEit Mobile のディレクトリパスを決定します。パスを指定するには、--mobiledir オプションを使用します。
Restore ユーティリティは、復元中に Mobile Windows Service (MIMobile) の停止と開始を行います。つまり、復元中はサービスを使用できません。
MOVEit Mobile をバックアップおよび復元に含める場合は、以下の点に注意してください。
Backup/Restore ユーティリティは、MOVEit Transfer セットアッププログラムによってインストールされ、MOVEitDMZ\Scheduler
フォルダーに配置されます。ファイル名は DMZBackup.exe
と DMZRestore.exe
です。MOVEit Transfer によって提供される必要なライブラリを使用するには、プログラムがこの場所にある必要があります。
Backup/Restore ユーティリティに加えて、ユーティリティで使用するための以下の 2 つの追加プログラムがインストールされます。
7z.exe
ファイルを使用してプログラムが実行されます。 ExportCerts.exe
: Microsoft SSL 証明書ストアを Backup/Restore ユーティリティで使用できる形式に変換する SSL 証明書抽出アプリケーション。 コマンドプロンプトを開き、MOVEit Transfer の Web 以外のディレクトリの Scheduler サブディレクトリに移動します。次のコマンドを実行します。
dmzbackup
Scheduler ディレクトリに MOVEitDMZ_Backup_xxxxxxxx.7z
という名前のファイルが作成されます。ここで、xxxxxxxx は、現在の日付を YYYYMMDD 形式で表したものです。このファイルには、MOVEit Transfer 設定の再構成に必要なファイルと情報がすべて含まれています。MOVEit Transfer 設定にある実際の暗号化されたファイルはバックアップされませんが、既存のフォルダー構成はバックアップされます。暗号化されたファイルもバックアップするには、--with-files コマンドラインオプションを上記のコマンドに追加します。
ファイルの完全なバックアップを行うには、サーバー上に大量の空きディスク領域が必要になるため (\MOVEitDMZ\Files ディレクトリの約 2 倍の空きディスク領域)、多くのユーザーは設定だけのバックアップを実行し、暗号化されたファイルは他の方法 (NTBackup や読み取り専用 FTP サーバーなど) でバックアップすることを選択します。この方法を使用するユーザーは、--with-file-tables オプションを追加する必要があります。このオプションを使用すると、Backup ユーティリティで、設定だけのバックアップを実行するときは通常スキップされるファイル関連のデータベーステーブルがバックアップされます。
ユーティリティの実行中に何が行われているかを確認したい場合は、--debug コマンドラインオプションを上記のコマンドに追加します。MOVEit Transfer Backup ユーティリティで使用できるオプションの一覧については、下の「Backup ユーティリティコマンド」セクションを参照するか、Scheduler サブディレクトリで次のコマンドを実行してください。
C:\MOVEitDMZ\Scheduler>dmzbackup --help
MOVEit Transfer Backup ユーティリティは、MOVEit Transfer システムの Scheduler ディレクトリで実行される .NET コンソールアプリケーションです。このユーティリティはコマンドライン駆動型であるため、バッチファイルに簡単に統合できます。使用可能なオプションのリストを確認するには、コマンド dmzbackup --help を入力します。データベースの場所、DSN、および DMZ ディレクトリについて表示されるデフォルト値は、MOVEit Transfer システムのレジストリから収集されます。これらの値は、コマンドラインオプションを使用してオーバーライドできます。
C:\MOVEitDMZ\Scheduler>dmzbackup --help
MOVEit DMZ Backup Utility
Version 8.3.0.0
Copyright c Ipswitch, Inc. 2016 by Ipswitch, Inc.
Usage: dmzbackup [options]
Options:
--backup-database-files
Backup the database by copying the table files instead of
using the mysqldump utility.This option should not be used
unless specifically required by the circumstances.
--backup-database-settings
By default the database connection settings are NOT backed up.
It is assumed that the system being restored to already has
its desired database connection configured.However, the
--backup-database-settings option can be used to include the
database connection settings in the backup file.
--backup-mobile=<password>
By default MOVEit Mobile files and settings are NOT backed up.
Use this option to include the Mobile Tomcat directory in the
backup file.Please provide a password to encrypt insecure
files.
--dbdatalocation=<directory>
Location of database data files (default C:\MySQL\data\)
--dbdsn=<dsn>
Database connection DSN name (default MOVEitDMZ)
--debug
Turn debug mode on
--dmznonwebdir=<directory>
DMZ non-web directory path (default C:\MOVEitDMZ)
--dmzprogramfilesdir=<directory>
DMZ Program Files path (default 'C:\Program Files
(x86)\MOVEit')
--dmzwebdir=<directory>
DMZ web directory path (default C:\MOVEitDMZ\wwwroot)
--exit-on-cert-export-errors
Exit immediately if an error is detected while backing up SSL
client and server certificates.This option has no effect if
--without-certs is enabled.
-h, --help
Display this help screen and exit
--ignore-cert-export-errors
Do not exit immediately if an error is detected while backing
up SSL client and server certificates.This option has no
effect if --without-certs is enabled. (default)
--mobiledir=<directory>
MOVEit Mobile directory path.If this option is not
provided, DMZBackup will determine the Mobile directory
path through the Windows Registry.This option has no effect
if --backup-mobile is not enabled.
--output=<output_filename>
Relative or absolute output filepath
(default MOVEitDMZ_Backup_YYYYMMDD.[zip|7z])
The date macros [YYYY], [MM], and [DD] may be used and will
be replaced by the current year, month, and day, respectively.
The time macros [HH], [TT], and [SS] may also be used and will
be replaced by the current hour, minute, and second
respectively.
--tempdir=<directory>
Base temporary directory to use
(default C:\Users\Administrator\AppData\Local\Temp\1\)
--use-zip
Use Zip.exe to create the backup file instead of 7z.exe.This
will generally result in a slightly larger backup file, and
will fail if the size of the backup file exceeds roughly 2GB,
but is faster than 7z.Use if your file collection is small
(<2GB).
--use-7z
Use 7z.exe to create the backup file instead of zip.exe.This
will generally result in a slightly smaller backup file, and
supports backup files larger than 2GB, but is slower than zip.
Use if your file collection is large (>2GB). (default)
--with-certs
Back up SSL client and server certificates from the Microsoft
Certificate Store.Certificate backup files will be encrypted.
(default)
--without-certs
Do not back up SSL server and client certificates
--with-files
Back up encrypted files along with DMZ filesystem structure
--without-files
Do not back up encrypted files along with DMZ filesystem
structure (default)
--with-file-tables
Back up the file tables from the database.This is implied
when using --with-files, but is not on by default when
--without-files is in effect.Since --without-files is on by
default, file tables are not backed up by default.
--without-database
Do not back up database (use if managing database backup by a
different method)
--without-ftpnatmap
Do not back up FTP NAT mappings (use if backup DMZ has
different IP address)
--without-ipbindings
Do not back up IP bindings for FTP and SSH services (use if
backup DMZ has different IP address)
--7z-no-compression
Force 7z.exe to use no compression when creating the backup
file.Will generally result in a larger backup file, but is
much faster.Use if your file collection has many large,
incompressible files (compressed video files, disk images,
etc).This option has no effect if --use-zip is enabled.
NOTE:Paths with spaces can be entered by surrounding the entire argument with quotes.例を次に示します。
"--tempdir=D:\Temp Dir\Sub Folder"
Backup ユーティリティは、必要なファイル、フォルダー構造、および設定をすべて一時ディレクトリにコピーし、Zip または 7-Zip を使用してそのディレクトリのコンテンツをアーカイブすることで、バックアップファイルを作成します。一時ディレクトリは、手順の完了時に削除されます。Backup ユーティリティでは、以下のアクションが実行されます。
重要: MOVEit Automation で復元を実行すると、既存のすべての設定情報がバックアップファイル内の情報で上書きされます。情報の保持が必要なシステムでは復元を実行しないでください。
前提条件:
最良の結果を得るため、ターゲットシステムとバックアップシステムでは同じ MOVEit Transfer バージョンを使用する必要があります。
注: 異なるバージョンを使用する場合、たとえば MOVEit Transfer サーバーを新しいプラットフォームに移行する場合や、新しいバージョンにアップグレードする場合は、復元後に MOVEit Transfer インストールプログラムを再実行し、[Repair (復元)] オプションを選択する必要があります。For more information, see
復元プログラムの実行。
dmzrestore path-to-your-backup-file --debug
ここで、
path-to-your-backup-file
は適切なパスです。--debug
はコマンドの実行時のアクションを示します。オプションRestore ユーティリティは、Web サーバーとデータベースを停止し、バックアップファイルを一時的な場所に展開し、バックアップされたファイルを適切な場所にコピーしたら、データベースと Web サーバーを再起動します。
DMZ Restore ユーティリティで使用できるオプションの一覧については、下の「MOVEit Transfer Restore ユーティリティ」セクションを参照するか、Scheduler サブディレクトリで次のコマンドを実行してください。
C:\MOVEitDMZ\Scheduler>dmzrestore --help
DMZ Restore ユーティリティは、MOVEit Transfer システムの Scheduler ディレクトリで実行される .NET コンソールアプリケーションです。このユーティリティはコマンドライン駆動型であるため、バッチファイルに簡単に統合できます。使用可能なオプションのリストを確認するには、コマンド dmzrestore --help を入力します。データベースの場所、DSN、および DMZ ディレクトリについて表示されるデフォルト値は、DMZ システムのレジストリから収集されます。これらの値は、コマンドラインオプションを使用してオーバーライドできます。
C:\MOVEitDMZ\Scheduler>dmzrestore --help
MOVEit DMZ Restore Utility
Version 8.3.0.0
Copyright c Ipswitch, Inc. 2016 by Ipswitch, Inc.
Usage: dmzrestore [options] <dmzbackupfile>
Options:
--dbdatalocation=<directory>
Location of database data files (default C:\MySQL\data\)
--dbdsn=<dsn>
Database connection DSN name (default MOVEitDMZ)
--debug
Turn debug mode on
--dmznonwebdir=<directory>
DMZ non-web directory path (default C:\MOVEitDMZ)
--dmzwebdir=<directory>
DMZ web directory path (default C:\MOVEitDMZ\wwwroot)
-h, --help
Display this help screen and exit
--mobiledir=<directory>
MOVEit Mobile directory path.If this option is not provided
DMZRestore will determine the Mobile directory path through the
Windows Registry.This option has not effect if --restore-mobile
is not enabled.
--restore-database-settings
By default the database connection settings that were saved to
the backup file (if any) are NOT restored.It is assumed that
the target system already has its desired database connection
configured.However, the --restore-database-settings option
can be used to restore the database connection settings from
the backup file.
--restore-mobile=<password>
By default MOVEit Mobile files and settings are NOT restored.
If the dmz backup file includes Mobile files and settings, use
this option to perform a Mobile restore.The restore will
include Mobile's Tomcat directory.Please provide the password
you used when backing up the Mobile files.The Mobile Windows
Service will be stopped and started during the restoration.
MOVEit Mobile of the same version and architecture as the
backup must be installed prior to the restoration.
--tempdir=<directory>
Base temporary directory to use (default
C:\Users\Administrator\AppData\Local\Temp\1\)
--use-zip
Use Zip.exe to extract the backup file instead of 7z.exe.Use
if you used the --use-zip option when creating the backup
file.If neither this, or the --use-7z option is selected, the
decompressor will be selected automatically, based on the
backup file extension (.zip will cause zip.exe to be used, all
other extensions will cause 7z.exe to be used).
--use-7z
Use 7z.exe to extract the backup file instead of zip.exe.Use
if you used the --use-7z option when creating the backup file,
or allowed the default action to occur.If neither this, or
the --use-zip option is selected, the decompressor will be
selected automatically, based on the backup file extension
(.zip will cause zip.exe to be used, all other extensions will
cause 7z.exe to be used). (default)
--with-files
Restore encrypted files along with DMZ filesystem structure if
they exist in the backup file (default)
--without-files
Do not restore encrypted files along with DMZ filesystem
structure even if they exist in the backup file
NOTE:Paths with spaces can be entered by surrounding the entire argument with quotes.
For Example:
"--tempdir=D:\Temp Dir\Sub Folder"
Restore ユーティリティは、Backup ユーティリティと同様に、最初に一時ディレクトリを作成します。次に、バックアップファイルから一時ディレクトリにすべてのファイルを抽出し、バックアップされたファイルを適切な場所にコピーします。その際、既存のファイルはすべて上書きされます。復元を正しく実行するために、最初に Web サーバーとデータベースサーバーを停止します。復元が完了すると、サービスが再起動され、一時ディレクトリが削除されます。Restore ユーティリティでは、以下のアクションが実行されます。
自動バックアッププロセスの作成
Ipswitch では、MOVEit Transfer サーバーの設定構造を毎晩 (できればピーク外の時間帯に) バックアップすることをお勧めします。以下の手順は、DMZ Backup ユーティリティ、MOVEit Xfer コマンドラインセキュア送信クライアント、および Windows スケジュールタスクシステムを使用してバックアッププロセスを作成する方法を示しています。このバックアッププロセスでは、MOVEit Transfer Web サービスが稼働している必要があります。このプロセスは、Web サーバーの停止、DMZ システムのバックアップ、Web サーバーの再起動、DMZ サーバー上の場所へのバックアップファイルのアップロードを行うバッチファイルで構成されます。そこからバックアップファイルをダウンロードし、安全な場所に保存する必要があります (この手順には、MOVEit Automation スーパークライアントをお勧めします)。
バックアッププロセスの準備
バックアッププロセスを作成する前に、以下の手順を行います。
MOVEit Transfer サーバー:
バックアップユーザーを作成するには:
バックアッププロセスのバッチファイル
バックアッププロセスを実行するバッチファイルコマンドを以下に示します。これらのコマンドを MOVEitDMZ\Scheduler ディレクトリ内のバッチファイルにコピーします。小なり (<) および大なり (>) 記号で囲まれた疑似値には、適切な値を入れる必要があります。-- オプションは、削除することも、追加してプロセスに含めることもできます。
rem *** AUTOMATED MOVEit DMZ Backup Procedure ***
SET Task=DMZBackup
del %Task%.err
rem Execute the backup process.This will create
rem a file with the name MOVEitDMZ_Backup_YYYYMMDD.7z,
rem where YYYYMMDD is the current year, month, and day.
rem A log of the results and another containing just the errors will also be saved
dmzbackup > %Task%.Log 2>%Task%.Err --tempdir=<temp directory> --without-files
rem If there were any errors in the logs, notify the administrators
for /F %%A in ("%Task%.Err") do If %%~zA equ 0 del %Task%.Err
IF EXIST %Task%.Err GOTO errors
GOTO ok
:errors
echo ERRORS
ReportErrors.exe %Task% %Task%.err %Task%.Log
GOTO done
:ok echo OK
rem If all OK...
rem Upload the file to the DMZ server
xfer -quiterror -z -user:<backup account username>
-password:<backup account password> -s:dmz_bkup_commands.txt localhost
rem If there were transfer errors, notify the administrators
IF NOT %ERRORLEVEL%==0 GOTO xferbad
:xferok
rem Delete backup file
del /Q MOVEitDMZ_Backup_*
GOTO done
:xferbad
ReportErrors.exe %Task%_During_Xfer %Task%xfer.Log %Task%xfer.Err
GOTO done
:done
MOVEit Xfer コマンドファイル
MOVEit Xfer がバックアップファイルをアップロードするために実行するコマンドファイルは、dmz_bkup_commands.txt という名前になります。このファイルを以下に示します。
<backup-user-name>
<backup-user-password>
put MOVEitDMZ_Backup_*
quit
バックアッププロセスのスケジュール
バックアッププロセスの実行をスケジュールするには、Windows の [Scheduled Tasks (スケジュールタスク)] サービスを使用します。プロセスはピーク外の時間帯にスケジュールする必要があります。次の手順に従って、バックアッププロセスをスケジュールします。
完了
自動バックアッププロセスを設定して、実行の準備を行います。プロセスをテストするには、[Scheduled Tasks (スケジュールタスク)] ウィンドウでバックアッププロセスのスケジュールタスクエントリを右クリックし、[Run (実行)] を選択します。
この時点で、内部ネットワーク上のクライアントを使用して、MOVEit Transfer システムからバックアップファイルを取り出し、定期的にテープにバックアップされるファイルサーバーのような安全な場所に保存することができます。MOVEit Automation により、このタスクを簡単かつ効果的に自動化することができます。内部ネットワーク上の MOVEit Automation システムを使用して、ファイル作成後のある時点でバックアップファイルをダウンロードした後、そのファイルを安全な場所に転送できます。次の手順に従って、このタスクを実行するように MOVEit Automation を設定します。
自動復元プロセスを使用すると、プライマリ DMZ システムが失われている間に使用される MOVEit Transfer の最新のホットスタンバイコピーを維持することができます。このプロセスは、MOVEit Automation などの 1 つまたは複数のクライアントを利用して、バックアップファイルをプライマリ DMZ からバックアップ DMZ に送信します。バックアップファイルをバックアップ DMZ に送信した後、復元プロセスはファイルをダウンロードし、ローカルシステムに復元します。
復元プロセスの準備
必要なすべてのソフトウェアのコピーを入手してインストールする必要があります。これには、DMZ Restore ユーティリティと、MOVEit Xfer のコピーも含まれます。あらかじめホットスタンバイマシンをプライマリマシンと手動で同期しておけば、ユーザー設定は必要ありません。このプロセスでは、バックアッププロセスで使用されるものと同じユーザーアカウントを使用します。
復元プロセスでバックアップファイルを正しくダウンロードして処理できるように、一定の名前でサーバー上に配置する必要があります。MOVEit Automation を使用してこれを行う場合は、デスティネーション要素のファイル名セクションを moveitdmz_backup.7z のような固定名に設定します。
復元プロセスのバッチファイル
復元プロセスを実行するバッチファイルコマンドを以下に示します。これらのコマンドを MOVEitDMZ\Scheduler ディレクトリ内のバッチファイルにコピーします。小なり (<) および大なり (>) 記号で囲まれた疑似値には、適切な値を入れる必要があります。
rem First, download the backup file from the
rem DMZ server
xfer -z -user:<backup account username> -password:<backup account password> -s:dmz_rstr_commands.txt localhost
rem Next, execute the restore process..
dmzrestore --tempdir=<temp directory> <DMZ backup filename>
rem Delete backup file
del /Q <DMZ backup filename>
MOVEit Xfer コマンドファイル
MOVEit Xfer がバックアップファイルをダウンロードして DMZ サーバーからそのファイルを削除するために実行するコマンドファイルは、dmz_rstr_commands.txt という名前になります。このファイルを以下に示します。
prompt
mget moveitdmz_backup_*.7z
mdel moveitdmz_backup_*.7z
復元プロセスのスケジュール
バックアッププロセスと同様に、復元プロセスの実行をスケジュールするには、Windows の [Scheduled Tasks (スケジュールタスク)] サービスを使用します。このプロセスは、ファイルが DMZ サーバーに到着する予定の時刻より後の任意の時刻にスケジュールできます。これは、この DMZ サーバーがホットスタンバイ状態であり、現在は稼働状態でないためです。「自動バックアッププロセスの作成」セクションの手順に従って、スケジュールされたプロセスを作成します。
完了
自動復元プロセスを設定して、実行の準備を行います。プロセスをテストするには (ダウンロードするファイルがあるものとします)、[Scheduled Tasks (スケジュールタスク)] ウィンドウでバックアッププロセスのスケジュールタスクエントリを右クリックし、[Run (実行)] を選択します。
上述のように、ホットスタンバイマシンとプライマリマシンの同期が維持されるようにバックアッププロセスと復元プロセスが正しく設定されていれば、組織は豊富な DMZ サービスを簡単に提供できます。プライマリマシンが何らかの理由でダウンした場合、追加の設定を行わなくても、ホットスタンバイに移行できます。これは、ホットスタンバイが常に実行されており、プライマリと同期されているためです。切り替えに必要な唯一の設定は、ルーティングシステムと DNS システムにあり、プライマリではなくスタンバイでユーザーを示します。
Scheduler フォルダーにある 2 つのバッチファイルにより、管理者は 1 つのコマンドを使用して、すべての MOVEit Transfer サービスを安全な順序で簡単に開始および停止できます。