Merge branch 'readme' of github.com:pajamian/rocky-tools into readme

This commit is contained in:
Peter Ajamian 2023-06-05 18:03:06 +12:00
commit 76a3966fef
3 changed files with 8 additions and 4 deletions

View File

@ -13,7 +13,7 @@ CentOS, CentOS Stream.
Running this script will convert an existing CentOS 8 system to Rocky Linux 8.
## [mirrorsync](./mirror/) -- Mirror Script
## [mirrorsync](./mirror/) -- Mirror Script and Configurations
Example script for keeping a public or private mirror in sync.
Example script and configuration notes for keeping a public or private mirror in sync.

View File

@ -3,7 +3,7 @@ Rocky Mirror Scripts
Scripts and snippets for mirror admins.
Please read https://docs.rockylinux.org/guides/add_mirror_manager/ for further information on setting up a Rocky mirror.
Please read https://docs.rockylinux.org/guides/mirror_management/add_mirror_manager/ for further information on setting up a Rocky mirror.
## example.crontab
@ -12,3 +12,5 @@ A few suggestions for setting up a crontab for syncing.
## mirrorsync.sh
Example script for keeping a public or private mirror in sync.
You may modify this to exclude specific repositories or directories from your mirror (for example, you can exclude "source" by changing the `--exclude` to `--exclude={'*.~tmp~', 'source'}`).

View File

@ -6,7 +6,7 @@
# The latest version of this script can be found at:
# https://github.com/rocky-linux/rocky-tools
#
# Please read https://docs.rockylinux.org/en/rocky/8/guides/add_mirror_manager
# Please read https://docs.rockylinux.org/guides/mirror_management/add_mirror_manager/
# for further information on setting up a Rocky mirror.
#
# Copyright (c) 2021 Rocky Enterprise Software Foundation
@ -41,6 +41,8 @@ rsync_run(){
}
# You can change v to q if you do not want detailed logging
# You may also add additional excludes if you don't want to provide certain
# repositories or architectures.
opts=(-vrlptDSH --exclude="*.~tmp~" --delete-delay --delay-updates)
# Please use a mirror geographically close to you for initial sync,