tkadmin query backup

目的

ボリュームのバックアップに関する情報を表示します。

概要

tkadmin query backup -server server_name logical_volume_name
 [-backupfilenum backup_file_number] [-count count] [-all] 

引数

-server server_name
コマンドによって影響されるサーバーを指定します。これはサーバーが構成されたときに指定された名前であることが必要です。
logical_volume_name
バックアップされた論理ボリュームを指定します。
[-backupfilenum backup_file_number]
情報表示の対象となるバックアップ・ファイル名のシーケンス番号を指定します。 デフォルトは、ボリュームの最後の完全なバックアップのシーケンス番号です。
[-count count]
情報表示の対象となる完全な独立バックアップの数を、最新のバックアップから数え始めた数で指定します。
[-all]
ボリュームのすべてのバックアップに関する情報を表示します。

説明

tkadmin query backup コマンドは、指定されたボリュームについて、最後の完全なバックアップに関する情報を表示します。 ボリュームのバックアップが複数ある場合は、-backupfilenum オプションを使用すると、特定のバックアップに関する情報を表示できます。 代わりに、-count オプションで指定した数の完全な独立バックアップに関する情報を表示したり、-all オプションでボリュームのすべてのバックアップに関する情報を表示したりすることもできます。

このコマンドは、バックアップ・ファイルごとに以下の情報を表示します。

  • バックアップ・ファイルが書き込まれた、または書き込み中のディレクトリー。
  • バックアップ・ファイル名。
  • バックアップが開始された日付。
  • バックアップ・ファイルの状態。バックアップ・ファイルが不完全である場合、そのファイルの状態は、in progress になることがあり、そのファイルの完全なバックアップが終了した場合は end of backup になることがあります。 状態が表示されない場合、ファイルは完全です。

完全なバックアップのたびに、出力にはバックアップによりボリュームを復元するのに必要な最も古いログ・アーカイブ・ファイルが表示されます。

次のコマンドは、ボリューム testVol の最新のバックアップに関する情報を表示します。

%  tkadmin query backup testVol
A backup for volume testVol comprises 4 files:
In directory <directory path>:
    testVol.TRB.000015 (started Tue Oct 3 19:14:32 1995, 
                                end of backup 15)
    testVol.TRB.000016 (started Tue Oct 3 19:21:31 1995, 
                                end of backup 16)
    testVol.TRB.000017 (started Tue Oct 3 19:28:32 1995, 
                                end of backup 17)
    testVol.TRB.000018 (started Tue Oct 3 19:35:30 1995, 
                                end of backup 18)
Earliest log archive file required to restore this data volume from 
this backup (without restoring associated log volume):
log/logvol.LA.92
Earliest log archive file required to restore the log volume can
be determined via the tkadmin query logvol command.

次のコマンドは、ボリューム Lvol のすべてのバックアップに関する情報を表示します。

%  tkadmin query backup Lvol -all
Volume Lvol contains the following complete backups.
(The most recent backup appears first.)
1: The first complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000047 (started Wed Oct  4 16:47:55 1995)
        Lvol.TRB.000048 (started Wed Oct  4 16:47:57 1995)
        Lvol.TRB.000049 (started Wed Oct  4 16:48:00 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.92
2: The second complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000044 (started Wed Oct  4 16:47:38 1995)
        Lvol.TRB.000045 (started Wed Oct  4 16:47:40 1995)
        Lvol.TRB.000046 (started Wed Oct  4 16:47:41 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.91
3: The next complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000041 (started Wed Oct  4 16:45:28 1995)
        Lvol.TRB.000042 (started Wed Oct  4 16:47:34 1995)
        Lvol.TRB.000043 (started Wed Oct  4 16:47:36 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.88
4: The next complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000038 (started Wed Oct  4 16:45:22 1995)
        Lvol.TRB.000039 (started Wed Oct  4 16:45:24 1995)
        Lvol.TRB.000040 (started Wed Oct  4 16:45:26 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.88
5: The next complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000035 (started Wed Oct  4 16:45:15 1995)
        Lvol.TRB.000036 (started Wed Oct  4 16:45:17 1995)
        Lvol.TRB.000037 (started Wed Oct  4 16:45:18 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.88

次のコマンドは、ボリューム Lvol の最後に行われた 2 つの完全な独立バックアップに関する情報を表示します。

%  tkadmin query backup Lvol -count 2
Volume Lvol contains the following complete backups.
(The most recent backup appears first.)
1: The first complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000047 (started Wed Oct  4 16:47:55 1995)
        Lvol.TRB.000048 (started Wed Oct  4 16:47:57 1995)
        Lvol.TRB.000049 (started Wed Oct  4 16:48:00 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.92
2: The second complete backup comprises the following 3 files:
 In directory <directory path>:
        Lvol.TRB.000044 (started Wed Oct  4 16:47:38 1995)
        Lvol.TRB.000045 (started Wed Oct  4 16:47:40 1995)
        Lvol.TRB.000046 (started Wed Oct  4 16:47:41 1995)
Earliest MRA file required to restore this data volume from 
this backup: log/logvol.LA.91