diff --git a/README.md b/README.md index 3017e7b..0ec3449 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ made for public consumption. 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. diff --git a/mirror/README.md b/mirror/README.md index 6c4c251..c28fdd6 100644 --- a/mirror/README.md +++ b/mirror/README.md @@ -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'}`). diff --git a/mirror/mirrorsync.sh b/mirror/mirrorsync.sh index 46238c7..1d4f3c7 100644 --- a/mirror/mirrorsync.sh +++ b/mirror/mirrorsync.sh @@ -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,