52
Chapter 6. Importing and Synchronizing
3. After the analysis of the export data, any differences are imported into the RHN
Satellite Server database. Please note that importing new packages may take variable
lengths of time. For a large update, an import can take many hours.
The
satellite-sync
command can be used in two modes: via RHN and via local media.
6.3.1. Synchronizing Errata and Packages Directly via RHN
For customers who want to sync data as frequently as possible and who can initiate con-
nections outside of their own environments, the satellite sync can be run over the Internet
through SSL. This is the default setting for the satellite sync script. For example:
satellite-sync -c rhel-i386-as-3
This connects to central Red Hat Network Servers and performs the process described
above. Multiple channels can be included by repeating the option. If no channels are spec-
ified, all channels on the Satellite will be refreshed.
6.3.2. Synchronizing Errata and Packages via Local Media
For customers who cannot connect their Satellite directly to RHN, Red
Hat
recommends
downloading
Channel
Content
ISOs
to
a
separate,
Internet-connected system and then transferring them to the Satellite. Refer to
Section 6.2.2
Preparing for Import from Local Media
for instructions on downloading the
ISOs. For ease of import, we recommend that the data be copied from media directly into
a common repository through a command such as the following:
cp -rv /mnt/cdrom/* /var/rhn-sat-sync/
Then, the following command:
satellite-sync -c rhel-i386-as-3 --mount-point
/var/rhn-sat-sync
This can be used to perform the sync process described above, using the dump files in
/var/rhn-sat-sync
to perform the necessary comparisons and imports. See
Section 6.2.3
Running the Import
for precise steps.