Compare commits
No commits in common. "15b985f148040999ac75b40f75759c0255854279" and "67eba6e6368929d6a48a6a80041db2480e6a426f" have entirely different histories.
15b985f148
...
67eba6e636
12
README.md
12
README.md
@ -92,7 +92,7 @@ How fast are the pipes to your repository.
|
||||
How did the sync occur, cron job or manually via ssh? This is auto detected and you do not need to define this configuration.
|
||||
|
||||
## Module specific configurations
|
||||
Each module is configured via configurations prefixed by the module name. The one configuration used by all modules is the `_sync_mathod` configuration which defines what sync method to use. Each sync method has different configurations available. The default sync method is rsync.
|
||||
Each module is configured via configurations prefixed by the module name. The one configuration used by all modules is the `_sync_method` configuration which defines what sync method to use. Each sync method has different configurations available. The default sync method is rsync.
|
||||
|
||||
Each repo has at bare minimum the following configurations:
|
||||
|
||||
@ -108,7 +108,7 @@ Extra options appended to `get pull`.
|
||||
|
||||
#### Example
|
||||
```bash
|
||||
example_sync_mathod="git"
|
||||
example_sync_method="git"
|
||||
example_repo="/home/mirror/http/example"
|
||||
example_timestamp="/home/mirror/timestamp/example"
|
||||
```
|
||||
@ -130,7 +130,7 @@ Extra options to append to `aws s3 sync`.
|
||||
|
||||
#### Example
|
||||
```bash
|
||||
example_sync_mathod="aws"
|
||||
example_sync_method="aws"
|
||||
example_repo="/home/mirror/http/example"
|
||||
example_timestamp="/home/mirror/timestamp/example"
|
||||
example_aws_bucket="s3://bucket/directory"
|
||||
@ -149,7 +149,7 @@ Extra options to append to the mirror command of lftp.
|
||||
|
||||
#### Example
|
||||
```bash
|
||||
example_sync_mathod="ftp"
|
||||
example_sync_method="ftp"
|
||||
example_repo="/home/mirror/http/example/"
|
||||
example_timestamp="/home/mirror/timestamp/example"
|
||||
example_source="https://repos.example.com/rhel/7/x86_64/stable"
|
||||
@ -166,7 +166,7 @@ The options passed to wget. Defaults to `--mirror --no-host-directories --no-par
|
||||
|
||||
#### Example
|
||||
```bash
|
||||
example_sync_mathod="wget"
|
||||
example_sync_method="wget"
|
||||
example_repo="/home/mirror/http/example/"
|
||||
example_timestamp="/home/mirror/timestamp/example"
|
||||
example_source="https://repos.example.com/rhel/7/x86_64/stable"
|
||||
@ -300,7 +300,7 @@ For the trace file saving, this defines what type of repo is being synced. Optio
|
||||
|
||||
#### Example
|
||||
```bash
|
||||
example_sync_mathod=qfm
|
||||
example_sync_method=qfm
|
||||
example_repo='/home/mirror/http/example/'
|
||||
example_timestamp='/home/mirror/timestamp/example'
|
||||
example_source='rsync://mirrors.example.com'
|
||||
|
@ -963,16 +963,16 @@ while (( $# > 0 )); do
|
||||
*)
|
||||
for MODULE in ${MODULES:?}; do
|
||||
if [[ "$1" == "$MODULE" ]]; then
|
||||
eval sync_mathod="\${${MODULE}_sync_mathod:-rsync}"
|
||||
if [[ "${sync_mathod:?}" == "git" ]]; then
|
||||
eval sync_method="\${${MODULE}_sync_method:-rsync}"
|
||||
if [[ "${sync_method:?}" == "git" ]]; then
|
||||
git_sync "$@"
|
||||
elif [[ "${sync_mathod:?}" == "aws" ]]; then
|
||||
elif [[ "${sync_method:?}" == "aws" ]]; then
|
||||
aws_sync "$@"
|
||||
elif [[ "${sync_mathod:?}" == "ftp" ]]; then
|
||||
elif [[ "${sync_method:?}" == "ftp" ]]; then
|
||||
ftp_sync "$@"
|
||||
elif [[ "${sync_mathod:?}" == "wget" ]]; then
|
||||
elif [[ "${sync_method:?}" == "wget" ]]; then
|
||||
wget_sync "$@"
|
||||
elif [[ "${sync_mathod:?}" == "qfm" ]]; then
|
||||
elif [[ "${sync_method:?}" == "qfm" ]]; then
|
||||
quick_fedora_mirror_sync "$@"
|
||||
else
|
||||
rsync_sync "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user