NetBackup™ クラウドオブジェクトストア管理者ガイド
- 概要
- クラウドオブジェクトストア資産の管理
- クラウドオブジェクトストア資産の保護
- クラウドオブジェクトストア資産のリカバリ
- トラブルシューティング
条件とタグ条件の例
条件とタグ条件の使用方法の例を次に示します。
コンテナまたはバケットに、次のファイルまたはディレクトリが存在するとします。
次の BLOB は「Project」:「HR」タグでタグ付けされます
OrganizationData/Hr/resumes/resume1_selected.pdf
OrganizationData/Hr/resumes/resume2_rejected.pdf
OrganizationData/Hr/resumes/resume3_noupdate.pdf
次の BLOB は「Project」:「Finance」タグ値でタグ付けされます
OrganizationData/Fin/accounts/account1/records1.txt
OrganizationData/Fin/accounts/account2/records2.txt
OrganizationData/Fin/accounts/account3/records3.txt
OrganizationData/Fin/accounts/monthly_expenses/Jul2022.rec
OrganizationData/Fin/accounts/monthly_expenses/Aug2022.rec
次の BLOB は「Project」:「Security」でタグ付けされます
BLOB Getepass.pdf: 「TypeOfData」:「ID_Cards」というもう 1 つのタグが存在するため、これは 2 つのタグ (Security と ID_Cards) でタグ付けされます。
OrganizationData/newJoinees/tempPassesList.xls
次の BLOB は「Project」:「Environment」でタグ付けされます
EnvironmentContribution.xls
NewPlantedTrees.xls
接頭辞条件の例:
ケース 1:
OrganizationData
から、状態 (採用、不採用など) に関係なくすべての履歴書をバックアップするには、次の問い合わせを追加します。prefix Equal to OrganizationData/Hr/resumes/resume
結果:
OrganizationData/Hr/resumes/resume
で始まるすべてのレコードがバックアップされます。ケース 2: Fin と HR からすべての履歴書とレコードをバックアップするには、次のいずれかの問い合わせを追加します。
prefix Equal to OrganizationData/Hr/resumes/resume
または
prefix Equal to OrganizationData/Fin/accounts/account1/rec
メモ:
複数の接頭辞を OR 条件で追加できます。
結果: OrganizationData/Hr/resumes/resume
または OrganizationData/Fin/accounts/account1/rec
で始まるすべてのレコードがバックアップされます。
オブジェクト条件の例:
特定のオブジェクトまたは BLOB をバックアップするには、次の問い合わせを追加します。
object Equal to OrganizationData/Fin/accounts/monthly_expenses/Jul2022.rec
結果: Jul2022.rec
という名前の BLOB のみが選択されます。
タグ条件の例:
ケース 1: 「Project」:「Finance」でタグ付けされたすべての BLOB をバックアップするには、次の問い合わせを追加します。
tagKey Equal to 'Project' and tagVal Equal to 'Finance'
結果: 「Project」=「Finance」でタグ付けされたすべてのオブジェクトまたは BLOB が選択されます。
ケース 2: プロジェクト Finance または Security と一致するデータをバックアップするには、次の問い合わせを追加します。
tagKey Equal to 'Project' and tagValue eq 'Finance' OR tagKey Equal to 'Project' and tagValue eq 'Security'
結果: 「Project」:「Finance」または「Project」:「Security」でタグ付けされたすべてのオブジェクトまたは BLOB が選択されます。
ケース 3: 「Project」:「Security」かつ「TypeOfData」:「ID_Cards」のデータをバックアップするには、次の問い合わせを追加します。
(tagKey Equal to 'Project' and tagValue Equal to 'Security') AND (tagKey Equal to 'TypeOfData' and tagValue Equal to 'ID_Cards')
結果: タグ「Project」:「Security」かつ「TypeOfData」:「ID_Cards」のデータが選択されます。