Skip to content

Commit

Permalink
more rclone configs
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Feb 29, 2024
1 parent 362347e commit 9424937
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ DEFAULT_MIRROR_URL="rsync://repos.fyralabs.com/repo/"
DEFAULT_HTTP_MIRROR="https://repos.fyralabs.com"
: ${USE_RSYNC=0}


# This script is for mirroring repos.fyralabs.com to a local directory.

# Default mirror directory: directory of script / repo
Expand All @@ -14,7 +13,6 @@ else
: ${MIRROR_URL:=$DEFAULT_MIRROR_URL}
fi


# rsync binary to use
: ${RSYNC:=rsync-ssl}

Expand Down Expand Up @@ -48,7 +46,6 @@ echo "Mirroring $MIRROR_URL to $MIRROR_DIR"

# rsync-ssl -avPzr $RSYNC_EXTRA_ARGS --delete $MIRROR_URL $MIRROR_DIR


if [ $USE_RSYNC -eq 1 ]; then
echo "Using rsync"
if [ $PARALLEL -eq 1 ]; then
Expand All @@ -67,7 +64,9 @@ else
--fast-list \
--checksum \
--transfers $MAX_THREADS \
-vP $RCLONE_OPTS \
--http-url $DEFAULT_HTTP_MIRROR \
:http:/ $MIRROR_DIR
--stats 5s \
--stats-one-line \
-v $RCLONE_OPTS \
--http-url $DEFAULT_HTTP_MIRROR \
:http:/ $MIRROR_DIR
fi

0 comments on commit 9424937

Please sign in to comment.