
Importing with RHN Satellite Synchronization Tool
43
Although it is not a requirement for the export to succeed, the export will be most useful when
performed on a Satellite that has populated channels.
6.1.2.1. Running the Export
First, be sure to configure the Satellite in the manner that you would either like to duplicate in another
Satellite or back up to a storage solution. Second, select the contents you would like to export. You
can choose not to export RPMs, errata, or kickstarts by using the options mentioned in Section 6.1.1,
“rhn-satellite-exporter”. Finally, execute the command as root. The following is an example
command:
rhn-satellite-exporter --dir=/var/rhn-sat-export --no-errata
When finished, the export directory may be moved to another Satellite or a storage solution using
rsync or scp -r.
6.2. Importing with RHN Satellite Synchronization Tool
Before distributing packages via RHN Satellite, the packages must first be uploaded to the Satellite.
This section describes the process for importing packages and other channel data.
Important
To populate custom channels correctly, you must first populate at least one Red Hat base
channel. The RHN Satellite Synchronization Tool creates the necessary directory structures
and permissions; without these, the custom channel tools will not work properly. For this reason,
you should use these instructions to set up your base channel(s) and then refer to the RHN
Channel Management Guide for steps to establish custom channels.
6.2.1. satellite-sync
The RHN Satellite Synchronization Tool (satellite-sync) enables an RHN Satellite to update its
database metadata and RPM packages with those of RHN's central servers, another Satellite within
your organization, or local media.
Important
Running satellite-sync can import a large amount of data, especially on newly installed
Satellite servers. If your database has performance issues after a significant amount of data
changes, consider gathering statistics on the database. Refer to Section 8.4, “Using RHN DB
Control” for more information.
To launch the RHN Satellite Synchronization Tool, execute the following command as root:
satellite-sync
This tool can be used in a closed environment, such as the one created with a disconnected install,
or it may obtain data directly over the Internet. Closed environment imports can get their data from
downloaded ISOs or from the XML data generated by RHN Satellite Exporter.
Komentarze do niniejszej Instrukcji