From 8971af22ec1eac6c584be1a0f584389b92864454 Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Thu, 15 Feb 2024 00:49:05 +0100 Subject: [PATCH] Speed up CDN upload --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b92a542..5faef7b 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -40,8 +40,8 @@ EOF trap "rm -f $TMP_FILE" EXIT -rclone --config $TMP_FILE copy --exclude "redir.*" gen "r2:$R2_BUCKET_NAME/$COMMIT" -rclone --config $TMP_FILE copy --include "redir.*" --header-upload "Content-Type: text/plain" gen "r2:$R2_BUCKET_NAME/$COMMIT" +rclone --config $TMP_FILE copy --transfers=5 --exclude "redir.*" gen "r2:$R2_BUCKET_NAME/$COMMIT" +rclone --config $TMP_FILE copy --transfers=20 --include "redir.*" --header-upload "Content-Type: text/plain" gen "r2:$R2_BUCKET_NAME/$COMMIT" if [ "$SET_LATEST" = "true" ]; then printf "$COMMIT" | rclone --config $TMP_FILE --header-upload "Content-Type: text/plain" rcat "r2:$R2_BUCKET_NAME/HEAD"