48
Chapter 8. Maintenance
Once the backup is complete, return to root user mode and restart the database and related services
with these commands in this order:
service rhn-database start
service taskomatic start
service httpd start
You should then copy that backup to another system using
rsync
or another file-transfer utility. Red
Hat strongly recommends scheduling the backup process automatically using cron jobs. For instance,
back up the system at 3 a.m. and then copy the backup to the separate repository (partition, disk, or
system) at 6 a.m.
8.4.3. Verifying the Backup
Backing up the Embedded Database is useful only if you can ensure the integrity of the resulting
backup.
RHN DB Control
provides two methods for reviewing backups, one brief, one more de-
tailed. To conduct a quick check of the backup’s timestamp and determine any missing files, issue this
command as oracle:
db-control
examine
DIRNAME
To conduct a more thorough review, including checking the md5sum of each of the files in the backup,
issue this command as oracle:
db-control
verify
DIRNAME
8.4.4. Restoring the Database
RHN DB Control
makes Embedded Database restoration a relatively simple process. As in the cre-
ation of backups, you will need to shut down the database and related services first by issuing the
following commands in this order as root:
service httpd stop
service taskomatic stop
service rhn-database stop
Then switch to the oracle user and issue this command, including the directory containing the backup,
to begin the restoration:
db-control
restore
DIRNAME
This not only restores the Embedded Database but first verifies the contents of the backup directory
using md5sums. Once the restoration is complete, return to root user mode and restart the database
and related services with these commands in this order:
service rhn-database start
service taskomatic start
service httpd start
Summary of Contents for NETWORK SATELLITE SERVER 3.6
Page 1: ...RHN Satellite Server 3 6 Installation Guide...
Page 10: ...6 Chapter 1 Introduction...
Page 32: ...28 Chapter 4 Installation...
Page 36: ...32 Chapter 5 Entitlements...
Page 44: ...40 Chapter 6 Importing and Synchronizing...
Page 60: ...56 Appendix A Sample RHN Satellite Server Configuration File...