Compare commits
No commits in common. "67eba6e6368929d6a48a6a80041db2480e6a426f" and "15b985f148040999ac75b40f75759c0255854279" have entirely different histories.
67eba6e636
...
15b985f148
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.
|
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
|
## Module specific configurations
|
||||||
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 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 repo has at bare minimum the following configurations:
|
Each repo has at bare minimum the following configurations:
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ Extra options appended to `get pull`.
|
|||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```bash
|
```bash
|
||||||
example_sync_method="git"
|
example_sync_mathod="git"
|
||||||
example_repo="/home/mirror/http/example"
|
example_repo="/home/mirror/http/example"
|
||||||
example_timestamp="/home/mirror/timestamp/example"
|
example_timestamp="/home/mirror/timestamp/example"
|
||||||
```
|
```
|
||||||
@ -130,7 +130,7 @@ Extra options to append to `aws s3 sync`.
|
|||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```bash
|
```bash
|
||||||
example_sync_method="aws"
|
example_sync_mathod="aws"
|
||||||
example_repo="/home/mirror/http/example"
|
example_repo="/home/mirror/http/example"
|
||||||
example_timestamp="/home/mirror/timestamp/example"
|
example_timestamp="/home/mirror/timestamp/example"
|
||||||
example_aws_bucket="s3://bucket/directory"
|
example_aws_bucket="s3://bucket/directory"
|
||||||
@ -149,7 +149,7 @@ Extra options to append to the mirror command of lftp.
|
|||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```bash
|
```bash
|
||||||
example_sync_method="ftp"
|
example_sync_mathod="ftp"
|
||||||
example_repo="/home/mirror/http/example/"
|
example_repo="/home/mirror/http/example/"
|
||||||
example_timestamp="/home/mirror/timestamp/example"
|
example_timestamp="/home/mirror/timestamp/example"
|
||||||
example_source="https://repos.example.com/rhel/7/x86_64/stable"
|
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
|
#### Example
|
||||||
```bash
|
```bash
|
||||||
example_sync_method="wget"
|
example_sync_mathod="wget"
|
||||||
example_repo="/home/mirror/http/example/"
|
example_repo="/home/mirror/http/example/"
|
||||||
example_timestamp="/home/mirror/timestamp/example"
|
example_timestamp="/home/mirror/timestamp/example"
|
||||||
example_source="https://repos.example.com/rhel/7/x86_64/stable"
|
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
|
#### Example
|
||||||
```bash
|
```bash
|
||||||
example_sync_method=qfm
|
example_sync_mathod=qfm
|
||||||
example_repo='/home/mirror/http/example/'
|
example_repo='/home/mirror/http/example/'
|
||||||
example_timestamp='/home/mirror/timestamp/example'
|
example_timestamp='/home/mirror/timestamp/example'
|
||||||
example_source='rsync://mirrors.example.com'
|
example_source='rsync://mirrors.example.com'
|
||||||
|
@ -963,16 +963,16 @@ while (( $# > 0 )); do
|
|||||||
*)
|
*)
|
||||||
for MODULE in ${MODULES:?}; do
|
for MODULE in ${MODULES:?}; do
|
||||||
if [[ "$1" == "$MODULE" ]]; then
|
if [[ "$1" == "$MODULE" ]]; then
|
||||||
eval sync_method="\${${MODULE}_sync_method:-rsync}"
|
eval sync_mathod="\${${MODULE}_sync_mathod:-rsync}"
|
||||||
if [[ "${sync_method:?}" == "git" ]]; then
|
if [[ "${sync_mathod:?}" == "git" ]]; then
|
||||||
git_sync "$@"
|
git_sync "$@"
|
||||||
elif [[ "${sync_method:?}" == "aws" ]]; then
|
elif [[ "${sync_mathod:?}" == "aws" ]]; then
|
||||||
aws_sync "$@"
|
aws_sync "$@"
|
||||||
elif [[ "${sync_method:?}" == "ftp" ]]; then
|
elif [[ "${sync_mathod:?}" == "ftp" ]]; then
|
||||||
ftp_sync "$@"
|
ftp_sync "$@"
|
||||||
elif [[ "${sync_method:?}" == "wget" ]]; then
|
elif [[ "${sync_mathod:?}" == "wget" ]]; then
|
||||||
wget_sync "$@"
|
wget_sync "$@"
|
||||||
elif [[ "${sync_method:?}" == "qfm" ]]; then
|
elif [[ "${sync_mathod:?}" == "qfm" ]]; then
|
||||||
quick_fedora_mirror_sync "$@"
|
quick_fedora_mirror_sync "$@"
|
||||||
else
|
else
|
||||||
rsync_sync "$@"
|
rsync_sync "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user