Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 2. Automatic Synchronization


Manually synchronizing the RHN Satellite Server repository with Red Hat Network can be an arduous task. Synchronization can be automated so that it occurs in non-peak times, such as the late evening or early morning to better balance load and ensure faster synchronization. Synchronization should occur randomly for best performance. The most effective way to automate synchronization is using cron.

Procedure 2.1. Automating Synchronization

  1. Switch to the root user, and open the crontab in a text editor:
    crontab -e
    
    Copy to Clipboard Toggle word wrap

    Note

    The crontab will open in vi by default. To change this behavior, change the EDITOR variable to the name of the text editor you prefer.
  2. In the crontab, use the first five fields (minute, hour, day, month, and weekday) to schedule the synchronization. To create a random synchronization time, use the following entry:
    0 1 * * * perl -le 'sleep rand 9000' && satellite-sync --email >/dev/null 2>1
    
    Copy to Clipboard Toggle word wrap
    This crontab entry will run the synchronization job randomly between 01:00 and 03:30. It will discard stdout and stderr from cron to prevent duplicating the messages from satellite-sync. Other options can be included as needed.
  3. To save the crontab, simply exit from the text editor. The new cron rules will be put in to place immediately.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat