Skip to content

Commit

Permalink
Fix retries argument to rclone
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovalle committed May 7, 2024
1 parent a769efc commit 71a8391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ if [ "$CI" = true ] ; then
curl --retry 15 -O https://downloads.rclone.org/v1.57.0/rclone-v1.57.0-linux-amd64.zip
unzip rclone-v1.57.0-linux-amd64.zip
chmod 755 rclone-v1.57.0-linux-amd64/rclone
rclone-v1.57.0-linux-amd64/rclone -q --retries --fast-list --transfers=1 copy ~/new.crimenmexico/elcri.men/static/en/images/infographics/fulls/ :b2:"$B2_BUCKET"/infographics/en/ --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.png"
rclone-v1.57.0-linux-amd64/rclone -q --retries --fast-list --transfers=1 copy ~/new.crimenmexico/elcri.men/static/es/images/infographics/fulls/ :b2:"$B2_BUCKET"/infographics/es/ --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.png"
rclone-v1.57.0-linux-amd64/rclone -q --retries 3 --fast-list --transfers=1 copy ~/new.crimenmexico/elcri.men/static/en/images/infographics/fulls/ :b2:"$B2_BUCKET"/infographics/en/ --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.png"
rclone-v1.57.0-linux-amd64/rclone -q --retries 3 --fast-list --transfers=1 copy ~/new.crimenmexico/elcri.men/static/es/images/infographics/fulls/ :b2:"$B2_BUCKET"/infographics/es/ --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.png"
fi

if [ "$CI" = true ] ; then
Expand Down
2 changes: 1 addition & 1 deletion deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ set -o pipefail # piping a failed process into a successful one is an error

# Copy the data files to a backup server
if [ "$CI" = true ] ; then
rclone-v1.57.0-linux-amd64/rclone -q --retries --fast-list --transfers=1 copy ~/new.crimenmexico/data/ :b2:"$B2_BUCKET" --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.gz"
rclone-v1.57.0-linux-amd64/rclone -q --retries 3 --fast-list --transfers=1 copy ~/new.crimenmexico/data/ :b2:"$B2_BUCKET" --b2-account="$B2_APPKEY_ID" --b2-key="$B2_APPKEY" --include "*.gz"
fi

0 comments on commit 71a8391

Please sign in to comment.