8.4.2. バックアップからの復元
本章で説明する方法は、異なるバージョンの CodeReady Workspaces への復元には使用できません。CodeReady Workspaces を別のバージョンに復元するには、crwctl
ツールを使用します。詳細は、「crwctl を使用したバックアップの管理」 の章を参照してください。
CheClusterRestore
の新規オブジェクトを作成し、バックアップから CodeReady Workspaces インストールを復元します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- 1
- 使用するバックアップサーバーを定義する
CheBackupServerConfiguration
オブジェクトの名前。 - 2
- 復元元となるスナップショット ID を定義するオプションパラメーター。デフォルト値は、バックアップサーバーの最後のスナップショットです。
新規リカバリーを要求する新しい
CheClusterRestore
オブジェクトを作成します。新規バックアップオブジェクトに同じ名前を再利用する前に、古いオブジェクトを削除します。
oc delete CheClusterBackup <name> -n openshift-workspaces
oc delete CheClusterBackup <name> -n openshift-workspaces
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
リカバリープロセスが完了するまで待ちます。
リカバリー後にブラウザーでエラーが発生した場合は、CodeReady Workspaces ドメインのブラウザーデータをクリーンアップします。
CheClusterRestore
オブジェクトの編集は機能しません。
検証
バックアッププロセスの状態を確認します。
CheClusterBackup
オブジェクトのstatus
セクションを読み取り、バックアッププロセスを確認します。status: message: 'Backup is in progress. Start time: <timestamp>' stage: Collecting CodeReady Workspaces installation data state: InProgress snapshotId: ba92c7e0
status: message: 'Backup is in progress. Start time: <timestamp>'
1 stage: Collecting CodeReady Workspaces installation data
2 state: InProgress
3 snapshotId: ba92c7e0
4 Copy to Clipboard Copied! Toggle word wrap Toggle overflow
復元プロセスの状態の確認
CheClusterRestore
オブジェクトのstatus
セクションを読み取り、復元プロセスを確認します。status: message: 'Restore is in progress. Start time: <timestamp>' stage: Restoring CodeReady Workspaces related cluster objects state: InProgress
status: message: 'Restore is in progress. Start time: <timestamp>'
1 stage: Restoring CodeReady Workspaces related cluster objects
2 state: InProgress
3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow