Complete the command to create a backup of RabbitMQ definitions.
rabbitmqctl export_definitions [1]The export_definitions command requires a filename to save the backup. Here, backup.json is a valid filename.
Complete the command to restore RabbitMQ definitions from a backup file.
rabbitmqctl import_definitions [1]The import_definitions command requires the backup file name to restore from. backup.json is the correct file.
Fix the error in the command to backup RabbitMQ data directory.
sudo tar [1] rabbitmq_backup.tar.gz /var/lib/rabbitmq/mnesiaThe tar command needs -czvf to create a compressed archive with verbose output and specify the filename.
Fill both blanks to create a backup and verify its contents.
sudo tar [1] rabbitmq_backup.tar.gz /var/lib/rabbitmq/mnesia && tar [2] rabbitmq_backup.tar.gz
First, create a compressed archive with -czvf. Then, list the archive contents with -tvf to verify.
Fill all three blanks to restore RabbitMQ data from backup and restart the service.
sudo systemctl stop rabbitmq-server && sudo tar [1] rabbitmq_backup.tar.gz -C [2] && sudo systemctl [3] rabbitmq-server
Stop the service, extract the backup with -xzf to the data directory, then restart the service.