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

2.5. Creating an offline backup (OpenShift)


Overview

When using Red Hat JBoss A-MQ on Red Hat OpenShift Container Platform 3.x, you can create an offline backup of your A-MQ container for the KahaDB message store. An offline backup is the safest way to backup your data because it avoids the risk of copying data that might be in the process of being updated.

Prerequisites

Before you begin, you should be familiar with the OpenShift Container Platform command line interface (CLI). See the OpenShift Container platform documentation (https://docs.openshift.com/index.html), specifically the Developer’s Guide and the CLI Reference.

Procedure

To create an offline backup for the KahaDB message store, follow these steps:

Procedure 2.1. Creating an offline backup

  1. Use the oc scale command to stop the A-MQ broker pod to make sure that no writes occur during the backup process:
    oc scale <object_type> <object_name> --replicas=<#_of_replicas>
    Copy to Clipboard Toggle word wrap
    In the following example, deployment configuration (dc) is the object-type and broker-amq is the object-name, and the number of replicas is set to zero:
    oc scale dc broker-amq --replicas=0
    Copy to Clipboard Toggle word wrap
  2. Create and run a no-op container to use for the backup process. In the following example, temp is the name of the no-op container and registry.access.redhat.com/rhel7 is the image for the container to run. The --tail -f option specifies to send logs about the run command to a local /dev/null folder and keeps the container running by preventing the replication process from closing it prematurely.
    oc run temp --image=registry.access.redhat.com/rhel7 --tail -f /dev/null
    Copy to Clipboard Toggle word wrap
  3. Mount the A-MQ broker’s persistent volume claims (PVC) to the no-op container by using the oc volume add command as shown in the following example:
    oc volume dc/temp --add -t pvc --name=broker-amq-claim --claim-name=broker-amq-claim --mount-path=/opt/amq/old-data
    Copy to Clipboard Toggle word wrap
  4. Copy the the A-MQ broker’s data from the no-op container to a local directory (for example /opt/amq/old-data):
    oc rsync temp-2-b5p6d:/opt/amq/old-data
    Copy to Clipboard Toggle word wrap
  5. Remove the no-op container:
    oc delete dc temp
    Copy to Clipboard Toggle word wrap
  6. Use the oc scale command to start the A-MQ broker pod:
    oc scale dc broker-amq --replicas=1
    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