Chapter 8. Maintenance
56
8.4.2. Backing up the Database
Red Hat recommends performing nightly backups of the Embedded Database and moving the
resulting directory to another system via NFS, SCP, FTP, etc. Preferably, this backup system resides
off-site. To conduct a backup, shut down the database and related services first by issuing the
following command as root:
service rhn-satellite stop
Then switch to the oracle user and issue this command to initiate the backup:
db-control backup
DIRNAME
Backup files are stored in the directory specified. Note that this is a cold backup; the database must be
stopped before running this command. This process takes several minutes. The first backup is a good
indicator of how long subsequent backups will take.
Once the backup is complete, return to root user mode and restart the database and related services
with the following command:
service rhn-satellite 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 detailed.
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
creation 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 rhn-satellite stop
Then switch to the oracle user and issue this command, including the directory containing the backup,
to begin the restoration:
Содержание NETWORK SATELLITE 5.1.1 - RELEASE NOTES
Страница 1: ...Red Hat Network Satellite 5 1 1 Installation Guide Red Hat Network Satellite ...
Страница 18: ...14 ...
Страница 21: ...Satellite Proxy Vertically Tiered Topology 17 Figure 3 3 Satellite Proxy Vertically Tiered Topology ...
Страница 22: ...18 ...
Страница 36: ...32 ...
Страница 50: ...46 ...
Страница 56: ...52 ...
Страница 68: ...64 ...
Страница 71: ...67 Appendix B Revision History Revision History Revision 1 0 ...
Страница 72: ...68 ...