0
0
RabbitMQdevops~10 mins

Backup and restore strategies in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to create a backup of RabbitMQ definitions.

RabbitMQ
rabbitmqctl export_definitions [1]
Drag options to blanks, or click blank then click option'
Abackup.json
B--backup
Cdefinitions.txt
Drabbit_backup
Attempts:
3 left
💡 Hint
Common Mistakes
Using flags instead of a filename
Using a filename without .json extension
2fill in blank
medium

Complete the command to restore RabbitMQ definitions from a backup file.

RabbitMQ
rabbitmqctl import_definitions [1]
Drag options to blanks, or click blank then click option'
Abackup.json
Brestore.txt
C--import
Ddefinitions.bak
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong filename
Using flags instead of filename
3fill in blank
hard

Fix the error in the command to backup RabbitMQ data directory.

RabbitMQ
sudo tar [1] rabbitmq_backup.tar.gz /var/lib/rabbitmq/mnesia
Drag options to blanks, or click blank then click option'
A-cvf
B-czvf
C-cf
D-xvf
Attempts:
3 left
💡 Hint
Common Mistakes
Using extract flag instead of create
Missing compression flag
4fill in blank
hard

Fill both blanks to create a backup and verify its contents.

RabbitMQ
sudo tar [1] rabbitmq_backup.tar.gz /var/lib/rabbitmq/mnesia && tar [2] rabbitmq_backup.tar.gz
Drag options to blanks, or click blank then click option'
A-czvf
B-xvf
C-cvf
D-tvf
Attempts:
3 left
💡 Hint
Common Mistakes
Using extract flag instead of list
Using wrong order of flags
5fill in blank
hard

Fill all three blanks to restore RabbitMQ data from backup and restart the service.

RabbitMQ
sudo systemctl stop rabbitmq-server && sudo tar [1] rabbitmq_backup.tar.gz -C [2] && sudo systemctl [3] rabbitmq-server
Drag options to blanks, or click blank then click option'
A-xzf
B/var/lib/rabbitmq/mnesia
Crestart
D-czvf
Attempts:
3 left
💡 Hint
Common Mistakes
Using create flags instead of extract
Wrong directory path
Using stop instead of restart