S3: Slow but painless migration

Note: This is for the case of faulty S3

apt install s3fs

echo $DO_ACCESS_KEY_ID:$DO_SECRET_ACCESS_KEY > digitalocean-creds

echo $WASABI_ACCESS_KEY_ID:$WASABI_SECRET_ACCESS_KEY > wasabi-creds

mkdir -p s3fs-{digitalocean,wasabi}

/usr/bin/s3fs $DO_BUCKET s3-digitalocean -o passwd_file=digitalocean-creds -o url=https://ams3.digitaloceanspaces.com -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000 -o default_acl=public-read

/usr/bin/s3fs $WASABI_BUCKET s3-wasabi -o passwd_file=wasabi-creds -o url=https://s3.eu-central-1.wasabisys.com -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000 -o default_acl=public-read

rsync --ignore-existing -h -v -r -P -t s3-digitalocean/* s3-wasabi/