이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 8. Backing Up and Restoring Data Grid Clusters


Create archives of Data Grid resources that include cached entries, cache configurations, Protobuf schemas, and server scripts. You can then use the backup archives to restore Data Grid Server clusters after a restart or migration.

Prerequisites

  • Start the Data Grid CLI.
  • Connect to a running Data Grid cluster.

8.1. Backing Up Data Grid Clusters

Create backup archives in .zip format that you can download or store on Data Grid Server.

Prerequisites

Backup archives should reflect the most recent cluster state. For this reason you should ensure the cluster is no longer accepting write requests before you create backup archives.

Procedure

  1. Create a CLI connection to Data Grid.
  2. Run the backup create command with the appropriate options, for example:

    • Back up all resources with an automatically generated name.

      [//containers/default]> backup create
      Copy to Clipboard Toggle word wrap
    • Back up all resources in a backup archive named example-backup.

      [//containers/default]> backup create -n example-backup
      Copy to Clipboard Toggle word wrap
    • Back up all resources to the /some/server/dir path on the server.

      [//containers/default]> backup create -d /some/server/dir
      Copy to Clipboard Toggle word wrap
    • Back up only caches and cache templates.

      [//containers/default]> backup create --caches=* --templates=*
      Copy to Clipboard Toggle word wrap
    • Back up named Protobuf schemas only.

      [//containers/default]> backup create --proto-schemas=schema1,schema2
      Copy to Clipboard Toggle word wrap
  3. List available backup archives on the server.

    [//containers/default]> backup ls
    Copy to Clipboard Toggle word wrap
  4. Download the example-backup archive from the server.

    If the backup operation is still in progress, the command waits for it to complete.

    [//containers/default]> backup get example-backup
    Copy to Clipboard Toggle word wrap
  5. Optionally delete the example-backup archive from the server.

    [//containers/default]> backup delete example-backup
    Copy to Clipboard Toggle word wrap

8.2. Restoring Data Grid Clusters from Backup Archives

Apply the content of backup archives to Data Grid clusters to restore them to the backed up state.

Prerequisites

  • Create a backup archive that is either local to the Data Grid CLI or stored on Data Grid Server.
  • Ensure that the target container matches the container name in the backup archive. You cannot restore backups if the container names do not match.

Procedure

  1. Create a CLI connection to Data Grid.
  2. Run the backup restore command with the appropriate options.

    • Restore all content from a backup archive accessible on the server.

      [//containers/default]> backup restore /some/path/on/the/server
      Copy to Clipboard Toggle word wrap
    • Restore all content from a local backup archive.

      [//containers/default]> backup restore -u /some/local/path
      Copy to Clipboard Toggle word wrap
    • Restore only cache content from a backup archive on the server.

      [//containers/default]> backup restore /some/path/on/the/server --caches=*
      Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat