Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/books/index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Unsere Bücher als stehen als PDF zum herunterladen zur Verfügung.
* [Italienisch](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.it.pdf)
* [Ukrainisch](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.uk.pdf)

### Sed, Awk, Grep: TheTreeSwordsmen
### The Three Swordsmen

* [Englisch](https://rocky-linux.github.io/documentation/Sed_Awk_Grep_TheTreeSwordsmen.pdf)
2 changes: 1 addition & 1 deletion docs/books/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Nos livres au format PDF peuvent être téléchargés pour une lecture hors-lign
* [Italien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.it.pdf)
* [Ukrainien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.uk.pdf)

### Sed, Awk, Grep: TheTreeSwordsmen
### The Three Swordsmen

* [Anglais](https://rocky-linux.github.io/documentation/Sed_Awk_Grep_TheTreeSwordsmen.pdf)
3 changes: 2 additions & 1 deletion docs/gemstones/git/00-gh_cli_installation.uk.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Встановлення та налаштування GitHub CLI на Rocky Linux
author: Wale Soyinka
Contributor: Ganna Zhyrnova
tags:
- GitHub CLI
- gh
Expand All @@ -10,7 +11,7 @@ tags:

## Вступ

Цей дорогоцінний камінь охоплює встановлення та базове налаштування інструменту GitHub CLI (gh) у системі Rocky Linux. Цей інструмент дозволяє користувачам взаємодіяти зі сховищами GitHub безпосередньо з командного рядка.
Цей Gemstone охоплює встановлення та базове налаштування інструменту GitHub CLI (gh) у системі Rocky Linux. Цей інструмент дозволяє користувачам взаємодіяти зі сховищами GitHub безпосередньо з командного рядка.

## Опис проблеми

Expand Down
2 changes: 1 addition & 1 deletion docs/gemstones/git/feature_branch_workflow.uk.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Робочий процес розгалуження функції в Git
author: Wale Soyinka
contributors: null
contributors: Ganna Zhyrnova
tags:
- git
- Функціональний робочий процес відділення
Expand Down
2 changes: 1 addition & 1 deletion docs/gemstones/git/fork_and_branch_workflow.uk.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Fork and Branch Git workflow
author: Wale Soyinka
contributors: null
contributors: Ganna Zhyrnova
tags:
- GitHub
- git
Expand Down
2 changes: 1 addition & 1 deletion docs/gemstones/git/git_remote_add.uk.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Додавання віддаленого репозиторію за допомогою git CLI
author: Wale Soyinka
contributors: null
contributors: Ganna Zhyrnova
tags:
- GitHub
- git
Expand Down
50 changes: 50 additions & 0 deletions docs/gemstones/setup_local_repo.fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Mise en place des dépôts locaux de Rocky
author: codedude
contributors: Steven Spencer
update: 2021-12-09
---

# Introduction

Parfois, vous avez besoin d'avoir des dépôts Rocky locaux pour construire des machines virtuelles, des environnements de laboratoire, etc. Ça peut également aider à économiser de la bande passante si c'est une préoccupation. Cet article vous guidera à travers l'utilisation de `rsync` pour copier les dépôts Rocky sur un serveur web local. La construction d'un serveur web est hors du sujet de cet article succin.

## Prérequis

* Un serveur web

## Exemple de Code

```
#!/bin/bash
repos_base_dir="/web/path"

# Start sync if base repo directory exist
if [[ -d "$repos_base_dir" ]] ; then
# Start Sync
rsync -avSHP --progress --delete --exclude-from=/opt/scripts/excludes.txt rsync://ord.mirror.rackspace.com/rocky "$repos_base_dir" --delete-excluded
# Download Rocky 8 repository key
if [[ -e /web/path/RPM-GPG-KEY-rockyofficial ]]; then
exit
else
wget -P $repos_base_dir https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-rockyofficial
fi
fi
```

## Détails de la procédure

Ce script shell simple utilise `rsync` pour extraire les fichiers de dépôt depuis le miroir le plus proche. Il utilise également l'option "exclude" qui est définie dans un fichier texte sous la forme de mots-clés qui ne devraient pas être inclus. Les exclusions sont adéquates si vous avez un espace disque limité ou si vous ne voulez pas tout pour une raison quelconque. Nous pouvons utiliser l'étoile `*` comme caractère générique. Faites attention en utilisant `*/ng` car il exclura tout ce qui correspond à ces caractères. Cf. l'exemple ci-dessous :

```
*/source*
*/debug*
*/images*
*/Devel*
8/*
8.4-RC1/*
8.4-RC1
```

# Conclusion
Un script simple qui peut aider à économiser la bande passante ou rendre la construction d'un environnement de laboratoire un peu plus facile.