mount_snapshot API 関数を使用すると、VSS スナップショットをレプリカ サーバ上の特定のフォルダにマウントできます。
引数
mount_snapshot API 関数には、以下のテーブルに記述されている引数が含まれています。
|
名前 |
タイプ |
説明 |
|---|---|---|
|
session_id |
uint |
create_session API をコールすることで返されたセッション ID。 |
|
host_name |
string |
エンジンのホスト名 |
|
ip_string |
string |
host_name の IP アドレス。 |
|
host_port |
ushort |
エンジンのポート番号。 通常、ポート番号は 25000 です。 |
|
mount_path |
string |
スナップショットをマウントするフォルダ。 |
|
snapshot_id |
string |
VSS スナップショット ID。 |
|
why_not_reason |
out string |
この API が失敗する時に、その失敗の理由が含まれます。 |
戻り値
戻り値のタイプはブールです。 戻り値が true の場合、API は正常に完了しています。 戻り値が false の場合、API は正常に完了しませんでした。 戻り値が false の場合は、メッセージを確認して API が失敗した理由を特定してください。
例
public bool mount_snapshot_example()
{
try
{
string host_name = "155.35.66.142";
string ip_string = "155.35.66.142";
ushort host_port = 25000;
string mount_path = "c:/mount";
string snapshot_id = "{9CFDE664-62D5-4fd8-A304-2B664900B98F}";
string why_not_reason = "";
return get_mng().mount_snapshot(session_id, host_name, ip_string, host_port, snapshot_id, mount_path, out why_not_reason);
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
return false;
}
|
Copyright © 2015 Arcserve.
All rights reserved.
|
|