-
Language:
English
-
Language:
English
Chapter 14. Backup and Restore for Red Hat Update Infrastructure
This chapter explains the procedure of backing up and restoring your Red Hat Update Infrastructure.
14.1. Backup and Restore for the Red Hat Update Appliance
Follow these steps to perform a backup of the Red Hat Update Appliance server. Note that stopping services does not disable any client instances from updating or installing packages since clients are only connected to CDS, and not to the Red Hat Update Appliance server. However, if you have an automated monitoring solution in place as detailed in Chapter 11, Monitoring, your monitoring may fail during the backup process.
Note
The
/var/lib/pulp
directory is likely to be quite large depending on how many repositories have been deployed on the Red Hat Update Appliance. Refer to Section 2.1 of the Installation guide to estimate how large this directory may be, or use the "du" command from the command line to determine its size.
14.1.1. Backup Process
Procedure 14.1. Backup Red Hat Update Appliance
- Stop the pulp-server service:
# service pulp-server stop
- Verify each service has stopped:
# service pulp-server status mongod is stopped
# service httpd status httpd is stopped
# service qpidd status qpidd is stopped
- Backup the following files:
Important
It is important that the files included in the backup retain their current attributes.Use the following command to backup the files:cp -a source_files_path destination_files_path
/etc/pulp/* /etc/rhui/rhui-tools.conf /etc/pki/pulp/* /etc/pki/rhua/* /etc/pki/rhui/* /var/log/pulp/* /var/log/httpd/* /var/lib/mongodb/pulp_database* /var/lib/pulp/* /etc/httpd/conf.d/pulp.conf /etc/httpd/conf.d/ssl.conf /etc/qpidd.conf /etc/rhui/myanswersfile
Note
In addition to the above files, you may wish to backup any generated client entitlement certificates and client configuration RPMs. - Restart the pulp-server service:
# service pulp-server start
14.1.2. Restore Process
Prepare a new Red Hat Update Appliance instance by following steps 1 to 5 from Procedure 2.2 in the Red Hat Update Infrastructure Installation Guide. Once those steps are completed, proceed with the following restoration steps:
Procedure 14.2. Restore Red Hat Update Appliance
- Stop the pulp-server service:
# service pulp-server stop
- Verify each service has stopped:
# service pulp-server status mongod is stopped
# service httpd status httpd is stopped
# service qpidd status qpidd is stopped
- Restore all the files that were backed up to their original locations.
Important
It is important that the files included in the restore retain their current attributes.Use the following command to restore the files:cp -a source_files_path destination_files_path
- Restart the pulp-server service:
# service pulp-server start