Backup and restore RabbitMQ services
Prerequisites
Section titled “Prerequisites”- You have created a RabbitMQ service.
Check Create and manage RabbitMQ services
Introduction
Section titled “Introduction”Backup and restore is an essential feature to guarantee the SLA of your service. STACKIT’s RabbitMQ offers backup and restore capabilities to help you achieving this goal. These are the features of the backup and restore capabilities:
- Backup and in-place-restore of your instances
- Automated scheduled backups every 4 hours
- Create manual backups
- Download your backups
- backup retention for 14 days
- All settings are accessible by the Portal, the CLI, Cloud Foundry and Terraform
Backup
Section titled “Backup”STACKIT’s RabbitMQ automatically creates a backup every 4 hours. This backups are held for 14 days. If you want a longer backup history, you need to download the created backups.
You don’t pay for the backup itself, but for the storage the generated backup files reserve. The storage size depends on your backup settings and of the accumulated instance databases size. At the moment you need to estimate the storage need by yourself.
Backup settings and their description
Section titled “Backup settings and their description”| Setting | Description | Options |
|---|---|---|
| Encryption Key | Defines the key with which the STACKIT system encrypts the backup | custom string |
List existing backups
Section titled “List existing backups”You can get an overview of all existing backups.
You can view all backups by navigating to the Backups tab at the service dashboard of your instance.
-
Open your project in the STACKIT Portal
-
Navigate to Messaging > RabbitMQ
-
Select your RabbitMQ instance and go to Overview
-
On the pane on the left select Backups
-
You see a list of all backups with their properties:
ID, Start time, End time, Backup size, Backup status, Restore created at
If you created an encryption key prior to the start time of a backup, you are able to download it via the thre dots menu on the right of the entry.
Create an encryption key
Section titled “Create an encryption key”You can create an encryption key to be able to download your backups.
To create an encryption key follow the steps below. You need to store the key in a safe place.
- Open your project in the STACKIT Portal
- Navigate to Messaging > RabbitMQ
- Select your RabbitMQ instance and go to Overview
- On the pane on the left click on Backups
- On the top bar click on Create encryption key
- Enter an encryption key with a minimum length of 8 characters and click on Create
Trigger a manual backup
Section titled “Trigger a manual backup”You can trigger a manual backup every time.
You can trigger a manual backup in the backup overview pane.
- Open your project in the STACKIT Portal
- Navigate to Messaging > RabbitMQ
- Select your RabbitMQ instance and go to Backups
- Click on Create manual backup
- In the popup click on create
- Wait until the status of the backup becomes Done
Download a backup
Section titled “Download a backup”You can trigger a manual backup every time.
You can download a backup in the backup overview pane.
- Open your project in the STACKIT Portal
- Navigate to Messaging > RabbitMQ
- Select your RabbitMQ instance and go to Backups
- Choose a backup to download and click on the three-dots-menu
- Click on Download If there is no Download option, then the backup was created without encryption. Always Create an encryption key before inserting important data into your instance.
- Wait until the download finishes
Restore
Section titled “Restore”You can restore a specific backup to the same instance. To restore your backup to a new instance, you need to download the backup and restore it manually after creating a new instance.
Managed restore to the same instance
Section titled “Managed restore to the same instance”You can do a restore by navigating to the Backups tab at the service dashboard of your instance and using the restore button.
- Open your project in the STACKIT Portal
- Navigate to Databases > RabbitMQ
- Select your RabbitMQ instance and go to Backups
- Click on the three dots menu of the right side of your desired backup you plan to restore
- Click on Restore
- On the popup, read the warning that all data in your instance gets overwritten
- If this is ok, click on Restore