Chapter 3. Planning for Disaster Recovery
3.1. Backing up a Red Hat Satellite Server
Red Hat recommends that you back up at least the following files and directories:
/var/opt/rh/rh-postgresql95/lib/pgsql/
(Embedded database only)/etc/sysconfig/rhn/
/etc/rhn/
/etc/sudoers
/var/www/html/pub/
/var/satellite/redhat/[0-9]*/
(This is the location of any custom RPMs)/root/.gnupg/
/root/ssl-build/
/etc/dhcp.conf
/etc/httpd
/var/lib/tftpboot/
(In Red Hat Enterprise Linux 6)/var/lib/cobbler/
/var/lib/rhn/kickstarts/
/var/www/
/var/lib/nocpulse/
/etc/tomcat*/
/etc/jabberd/
/etc/cobbler/
/var/satellite/
as well. In case of failure, this will save lengthy download times. The /var/satellite/
directory (specifically /var/satellite/redhat/NULL/
) is primarily a duplicate of Red Hat's RPM repository, and can be regenerated using the cdn-sync
command. Red Hat recommends that the entire /var/satellite/
tree be backed up. In the case of disconnected satellites, /var/satellite/
must be backed up.
- Reinstall the Red Hat Satellite ISO RPMs.
- Reregister the server.
- Use the
cdn-sync
command to resynchronize Red Hat packages. - Reinstall the
/root/ssl-build/rhn-org-httpd-ssl-key-pair-MACHINE_NAME-VER-REL.noarch.rpm
file.
Another method is to back up all of the files and directories mentioned above but reinstall the Satellite server without reregistering it. During the installation, cancel or skip the Red Hat Network registration and SSL certificate generation sections.
The final and most comprehensive method is to back up the entire machine. This saves download and reinstallation time but requires additional disk space and back-up time.
Important
rhn-search
service is started:
# service rhn-search cleanindex