github.com/artpar/rclone@v1.67.3/bin/tidy-beta (about)

     1  #!/bin/sh
     2  # Use this script after a release to tidy the betas
     3  
     4  version="$1"
     5  if [ "$version" = "" ]; then
     6      echo "Syntax: $0 <version, e.g. v1.42> [delete]"
     7      exit 1
     8  fi
     9  dry_run="--dry-run"
    10  if [ "$2" = "delete" ]; then
    11      dry_run=""
    12  else
    13      echo "Running in --dry-run mode"
    14      echo "Use '$0 $version delete' to actually delete files"
    15  fi
    16  
    17  rclone ${dry_run} -vv -P --checkers 16 --transfers 16 delete \
    18         --fast-list \
    19         --include "/${version}**" \
    20         --include "/branch/*/${version}**" \
    21         memstore:beta-rclone-org